Pierre Goiffon
1cfb52d220
🐛 Fix CoreException constructor generating a warning on PHP >= 7.2
...
In the CoreException constructor, we're using the $aContextData parameter to do a count(), a foreach(), and uses values as string.
Only a null check was done.
Now we are also checking that the value is_array().
As others checks (Countable, Iterable, __toString() impl) are quite difficult depending on the PHP version we're running, we didn't add any other checks.
The call in \MatchExpression::__construct (added in 05a0d612 ) was passing directly an Expression object. We could embed it in an array, but the object hierarchy isn't implementing __toString so we would have another bug.
In consequence we removed this parameter.
2020-10-19 11:57:53 +02:00
..
2020-03-02 12:04:12 +01:00
2020-10-19 11:57:53 +02:00
2018-10-18 14:20:40 +02:00
2017-10-02 07:30:41 +00:00
2019-01-24 18:07:50 +01:00
2019-02-13 14:07:13 +01:00
2020-09-02 18:15:31 +02:00
2019-11-04 11:50:36 +01:00
2018-10-18 14:20:40 +02:00
2020-06-17 09:25:38 +02:00
2020-09-07 12:14:38 +02:00
2020-10-16 14:15:51 +02:00
2020-07-21 16:39:55 +02:00
2018-10-18 14:20:40 +02:00
2020-05-11 12:14:55 +02:00
2020-08-04 09:44:20 +02:00
2020-05-28 15:38:21 +02:00
2020-02-20 18:01:09 +01:00
2020-08-07 14:48:51 +02:00
2020-01-24 17:43:59 +01:00
2020-10-19 11:57:53 +02:00
2020-01-28 11:59:04 +01:00
2018-11-06 17:36:14 +01:00
2018-10-18 14:20:40 +02:00
2016-04-15 09:05:39 +00:00
2018-10-18 14:20:40 +02:00
2020-10-07 16:21:36 +02:00
2019-07-25 15:12:44 +02:00
2020-10-07 13:26:38 +02:00
2018-10-18 14:20:40 +02:00
2020-10-01 12:15:34 +02:00
2020-06-16 12:32:57 +02:00
2018-10-18 14:20:40 +02:00
2020-10-01 10:09:34 +02:00
2020-10-01 10:09:34 +02:00
2018-10-18 14:20:40 +02:00
2018-10-18 14:20:40 +02:00
2019-10-31 10:35:48 +01:00
2019-12-06 15:42:03 +01:00
2020-05-13 14:38:32 +02:00
2020-04-23 15:25:12 +02:00
2020-07-21 16:39:55 +02:00
2018-10-18 14:20:40 +02:00
2019-09-06 14:30:42 +02:00
2018-10-18 14:20:40 +02:00
2016-05-14 17:35:52 +00:00
2020-06-22 11:36:46 +02:00
2020-05-12 15:34:13 +02:00
2017-05-05 15:08:49 +00:00
2020-01-08 10:10:49 +01:00
2019-12-23 17:17:10 +01:00
2020-05-28 11:40:22 +02:00
2020-10-15 17:31:25 +02:00
2018-10-18 14:20:40 +02:00
2018-10-18 14:20:40 +02:00
2018-10-18 14:20:40 +02:00
2018-10-18 14:20:40 +02:00
2019-11-28 17:03:31 +01:00
2019-12-24 17:30:12 +01:00
2020-02-04 15:54:03 +01:00
2020-01-07 10:00:14 +01:00
2020-01-07 10:00:14 +01:00
2019-09-25 10:57:35 +02:00
2018-07-13 08:34:47 +00:00
2018-10-18 14:20:40 +02:00
2019-12-17 15:08:22 +01:00
2020-07-21 14:21:55 +02:00
2019-11-22 12:23:00 +01:00
2020-02-11 14:35:38 +01:00
2020-09-29 10:27:05 +02:00
2020-02-11 14:35:38 +01:00
2019-11-18 15:36:42 +01:00
2019-01-23 11:05:12 +01:00
2019-12-03 12:11:00 +01:00
2019-09-25 10:57:35 +02:00
2018-10-18 14:20:40 +02:00
2018-06-22 15:56:17 +00:00
2020-01-14 10:46:21 +01:00
2019-06-21 11:08:23 +02:00
2019-08-13 17:38:51 +02:00
2018-10-18 14:34:22 +02:00
2020-02-06 12:12:27 +01:00
2020-01-07 10:00:14 +01:00
2018-10-18 14:20:40 +02:00
2020-04-01 17:37:55 +02:00
2018-10-18 14:20:40 +02:00
2020-07-21 16:39:55 +02:00
2020-02-21 18:05:30 +01:00
2019-11-07 09:16:06 +01:00
2018-10-22 17:11:07 +02:00
2020-01-30 16:18:49 +01:00
2020-09-25 08:57:08 +02:00
2020-05-05 11:14:59 +02:00
2018-01-30 15:17:51 +00:00