From 6d9b6715257b06c85364ef0c2832d6fc86a1318d Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sat, 7 Dec 2024 18:29:41 +0100 Subject: [PATCH 1/2] Drop old versions --- composer.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 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": { From df94020c00e3cb402b9059569d4537b46571c7a0 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sat, 7 Dec 2024 18:37:56 +0100 Subject: [PATCH 2/2] Rector --- src/Source/AbstractXmlSourceIterator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);