1
0
Fork 0

Fix more PHP 8.1 deprecations, refs #10008

pull/10016/head
Jordi Boggiano 2021-07-22 11:29:38 +02:00
parent 10ae1d7b08
commit 47cf602f9e
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
2 changed files with 11 additions and 6 deletions

12
composer.lock generated
View File

@ -377,16 +377,16 @@
},
{
"name": "justinrainbow/json-schema",
"version": "5.2.10",
"version": "5.2.11",
"source": {
"type": "git",
"url": "https://github.com/justinrainbow/json-schema.git",
"reference": "2ba9c8c862ecd5510ed16c6340aa9f6eadb4f31b"
"reference": "2ab6744b7296ded80f8cc4f9509abbff393399aa"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/2ba9c8c862ecd5510ed16c6340aa9f6eadb4f31b",
"reference": "2ba9c8c862ecd5510ed16c6340aa9f6eadb4f31b",
"url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/2ab6744b7296ded80f8cc4f9509abbff393399aa",
"reference": "2ab6744b7296ded80f8cc4f9509abbff393399aa",
"shasum": ""
},
"require": {
@ -441,9 +441,9 @@
],
"support": {
"issues": "https://github.com/justinrainbow/json-schema/issues",
"source": "https://github.com/justinrainbow/json-schema/tree/5.2.10"
"source": "https://github.com/justinrainbow/json-schema/tree/5.2.11"
},
"time": "2020-05-27T16:41:55+00:00"
"time": "2021-07-22T09:24:00+00:00"
},
{
"name": "psr/log",

View File

@ -52,6 +52,11 @@ class ErrorHandler
}
if (self::$io) {
// ignore symfony/console deprecation warning
if (0 === strpos($message, 'Return type of Symfony\\Component\\Console\\Helper\\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator')) {
return true;
}
self::$io->writeError('<warning>Deprecation Notice: '.$message.' in '.$file.':'.$line.'</warning>');
if (self::$io->isVerbose()) {
self::$io->writeError('<warning>Stack trace:</warning>');