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:
commit
60f0fd13bf
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user