From 5b276006e44468170595edb95a24b2b0544b1886 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sat, 7 Dec 2024 18:39:54 +0100 Subject: [PATCH] Drop old versions (#681) * Drop old versions * Rector --- composer.json | 16 ++++++++-------- src/Source/AbstractXmlSourceIterator.php | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index b81d7da6..5c0682e7 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ ], "homepage": "https://docs.sonata-project.org/projects/exporter", "require": { - "php": "^8.0" + "php": "^8.1" }, "require-dev": { "doctrine/dbal": "^3.1", @@ -42,13 +42,13 @@ "psalm/plugin-phpunit": "^0.18", "psalm/plugin-symfony": "^5.0", "rector/rector": "^1.1", - "symfony/config": "^5.4 || ^6.2 || ^7.0", - "symfony/dependency-injection": "^5.4 || ^6.2 || ^7.0", - "symfony/http-foundation": "^5.4 || ^6.2 || ^7.0", - "symfony/http-kernel": "^5.4 || ^6.2 || ^7.0", - "symfony/phpunit-bridge": "^6.2 || ^7.0", - "symfony/property-access": "^5.4 || ^6.2 || ^7.0", - "symfony/routing": "^5.4 || ^6.2 || ^7.0", + "symfony/config": "^6.4 || ^7.1", + "symfony/dependency-injection": "^6.4 || ^7.1", + "symfony/http-foundation": "^6.4 || ^7.1", + "symfony/http-kernel": "^6.4 || ^7.1", + "symfony/phpunit-bridge": "^6.4 || ^7.1", + "symfony/property-access": "^6.4 || ^7.1", + "symfony/routing": "^6.4 || ^7.1", "vimeo/psalm": "^5.0" }, "conflict": { diff --git a/src/Source/AbstractXmlSourceIterator.php b/src/Source/AbstractXmlSourceIterator.php index 72434c3b..09df8adf 100644 --- a/src/Source/AbstractXmlSourceIterator.php +++ b/src/Source/AbstractXmlSourceIterator.php @@ -104,8 +104,8 @@ final public function rewind(): void { $this->parser = xml_parser_create(); xml_set_object($this->parser, $this); - xml_set_element_handler($this->parser, [$this, 'tagStart'], [$this, 'tagEnd']); - xml_set_character_data_handler($this->parser, [$this, 'tagContent']); + xml_set_element_handler($this->parser, $this->tagStart(...), $this->tagEnd(...)); + xml_set_character_data_handler($this->parser, $this->tagContent(...)); xml_parser_set_option($this->parser, \XML_OPTION_CASE_FOLDING, 0); xml_parser_set_option($this->parser, \XML_OPTION_SKIP_WHITE, 0);