1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00

Merge pull request #6981 from AlessandroMinoccheri/fix-count-for-php-7-1

using lenght istead of count for php 7.1 compatibility
This commit is contained in:
orklah 2021-11-23 21:40:45 +01:00 committed by GitHub
commit 60f0fd13bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -811,7 +811,7 @@ class Config
self::CONFIG_NAMESPACE,
$deprecated_element
);
if ($deprecated_elements_xml->count()) {
if ($deprecated_elements_xml->length) {
$deprecated_element_xml = $deprecated_elements_xml->item(0);
assert($deprecated_element_xml !== null);
$line = $deprecated_element_xml->getLineNo();