Skip to content
Permalink
Browse files

Fix composer checks once more

  • Loading branch information
muglug committed Jan 1, 2020
1 parent e70a282 commit 033b610770a310c7c747344a48de619ef496a31e
Showing with 7 additions and 5 deletions.
  1. +3 −1 bin/composer-require-checker-config.json
  2. +4 −4 src/Psalm/Internal/PluginManager/ConfigFile.php
@@ -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",
@@ -1,7 +1,7 @@
<?php
namespace Psalm\Internal\PluginManager;

use DomDocument;
use DOMDocument;
use function file_get_contents;
use function file_put_contents;
use Psalm\Config;
@@ -106,9 +106,9 @@ public function addPlugin(string $plugin_class)
$this->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 @@ private function readXml(): DomDocument
}

/** @return void */
private function saveXml(DomDocument $config_xml)
private function saveXml(DOMDocument $config_xml)
{
$new_file_contents = $config_xml->saveXML($config_xml);

0 comments on commit 033b610

Please sign in to comment.
You can’t perform that action at this time.