Skip to content

Commit

Permalink
Merge pull request #6981 from AlessandroMinoccheri/fix-count-for-php-7-1
Browse files Browse the repository at this point in the history
using lenght istead of count for php 7.1 compatibility
  • Loading branch information
orklah authored and weirdan committed Nov 23, 2021
1 parent cd48940 commit 417cc47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Config.php
Expand Up @@ -811,7 +811,7 @@ private static function processConfigDeprecations(
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();
Expand Down

0 comments on commit 417cc47

Please sign in to comment.