From 033b610770a310c7c747344a48de619ef496a31e Mon Sep 17 00:00:00 2001 From: Matthew Brown Date: Wed, 1 Jan 2020 17:29:30 -0500 Subject: [PATCH] Fix composer checks once more --- bin/composer-require-checker-config.json | 4 +++- src/Psalm/Internal/PluginManager/ConfigFile.php | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/bin/composer-require-checker-config.json b/bin/composer-require-checker-config.json index ec59c89fd..34acbc19e 100644 --- a/bin/composer-require-checker-config.json +++ b/bin/composer-require-checker-config.json @@ -2,7 +2,9 @@ "symbol-whitelist" : [ "null", "true", "false", "static", "self", "parent", - "array", "string", "int", "float", "bool", "iterable", "callable", "void", "object" + "array", "string", "int", "float", "bool", "iterable", "callable", "void", "object", + "igbinary_serialize", "igbinary_unserialize", "PHP_PARSER_VERSION", "PSALM_VERSION", "runkit_object_id", + "sapi_windows_cp_is_utf8" ], "php-core-extensions" : [ "Core", diff --git a/src/Psalm/Internal/PluginManager/ConfigFile.php b/src/Psalm/Internal/PluginManager/ConfigFile.php index d9049a82d..fb18bad6f 100644 --- a/src/Psalm/Internal/PluginManager/ConfigFile.php +++ b/src/Psalm/Internal/PluginManager/ConfigFile.php @@ -1,7 +1,7 @@ saveXml($config_xml); } - private function readXml(): DomDocument + private function readXml(): DOMDocument { - $doc = new DomDocument(); + $doc = new DOMDocument(); $file_contents = file_get_contents($this->path); @@ -127,7 +127,7 @@ class ConfigFile } /** @return void */ - private function saveXml(DomDocument $config_xml) + private function saveXml(DOMDocument $config_xml) { $new_file_contents = $config_xml->saveXML($config_xml);