diff --git a/Behat/Context/Console/ApplicationTester.php b/Behat/Context/Console/ApplicationTester.php index afd981c..b925f52 100644 --- a/Behat/Context/Console/ApplicationTester.php +++ b/Behat/Context/Console/ApplicationTester.php @@ -74,7 +74,6 @@ public function getDisplay(bool $normalize = false): string if ($normalize) { $display = str_replace(PHP_EOL, "\n", $display); } - Assertion::string($display); return $display; } diff --git a/Behat/Fixtures/Project/app/config/config_test.yml b/Behat/Fixtures/Project/app/config/config_test.yml index 5f2e0d5..afb57eb 100644 --- a/Behat/Fixtures/Project/app/config/config_test.yml +++ b/Behat/Fixtures/Project/app/config/config_test.yml @@ -20,7 +20,6 @@ doctrine: memory: true orm: - auto_generate_proxy_classes: '%kernel.debug%' auto_mapping: true fsi_teryt_db: diff --git a/Teryt/Api/WSASoap.php b/Teryt/Api/WSASoap.php index dc829f7..48dfa12 100644 --- a/Teryt/Api/WSASoap.php +++ b/Teryt/Api/WSASoap.php @@ -85,7 +85,7 @@ private function locateHeader(): DOMNode $headers = $this->SOAPXPath->query('//wssoap:Envelope/wssoap:Header'); Assertion::isInstanceOf($headers, DOMNodeList::class); $header = $headers->item(0); - if (!$header) { + if (false === $header instanceof DOMNode) { $header = $this->soapDoc->createElementNS($this->soapNS, $this->soapPFX . ':Header'); Assertion::isInstanceOf($header, DOMNode::class); $this->envelope->insertBefore($header, $this->envelope->firstChild); diff --git a/Xml/Parser.php b/Xml/Parser.php index 83cda6d..a26cf02 100644 --- a/Xml/Parser.php +++ b/Xml/Parser.php @@ -59,11 +59,6 @@ public function parse(mixed $data, int $chunkSize = 1024): self throw new Exception('Data must be a string or a stream resource'); } - //Ensure $chunkSize is the right type - if (!is_int($chunkSize)) { - throw new Exception('Chunk size must be an integer'); - } - //Initialise the object $this->init(); diff --git a/composer.json b/composer.json index 2058b89..14f2c6f 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "symfony/console": "^5.4|^6.4|^7.0", "symfony/dom-crawler": "^5.4|^6.4|^7.0", "symfony/css-selector": "^5.4|^6.4|^7.0", - "doctrine/persistence": "^2.0|^3.0", + "doctrine/persistence": "^2.0|^3.0|^4.0", "doctrine/doctrine-fixtures-bundle": "^3.4|^4.0", "robrichards/wse-php": "^2.0", "robrichards/xmlseclibs": "^3.0" @@ -31,23 +31,26 @@ "behat/behat": "^3.3", "behat/mink-browserkit-driver": "^2.0", "doctrine/collections": "^1.7|^2.0", - "doctrine/dbal": "^2.13.4|^3.0", + "doctrine/dbal": "^2.13.4|^3.0|^4.0", "doctrine/doctrine-bundle": "^2.1|^3.0", - "doctrine/orm": "^2.8", + "doctrine/orm": "^2.8|^3.0", "friends-of-behat/mink-extension": "^2.0", "friends-of-behat/symfony-extension": "^2.4", "phpspec/phpspec": "^5.0|^6.0|^7.0|^8.0", - "phpstan/phpstan": "^1.0", - "phpstan/phpstan-beberlei-assert": "^1.1", - "phpstan/phpstan-doctrine": "^1.0", - "phpstan/phpstan-symfony": "^1.3", - "squizlabs/php_codesniffer": "^3.7", - "symfony/proxy-manager-bridge": "^4.4.19|^5.4|^6.4|^7.0" + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-beberlei-assert": "^2.0", + "phpstan/phpstan-doctrine": "^2.0", + "phpstan/phpstan-symfony": "^2.0", + "squizlabs/php_codesniffer": "^4.0", + "symfony/proxy-manager-bridge": "^5.4|^6.4|^7.0" }, "config": { "bin-dir": "vendor/bin", "sort-packages": true }, + "conflict": { + "symfony/var-exporter": ">=8.0" + }, "autoload": { "psr-4": { "FSi\\Bundle\\TerytDatabaseBundle\\": "" } },