diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index d0253293c..88b8698f9 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -109,6 +109,10 @@ jobs: # using ~ here to avoid issues with windows CLI removing the ^ run: 'composer require --no-update --dev "symfony/phpunit-bridge:~5.4@dev"' + - name: "Set ignored deprecations for php 8.1+ on lowest or locked deps" + if: "matrix.php-version >= '8.1' && !contains(matrix.dependencies, 'highest')" + run: "echo \"SYMFONY_DEPRECATIONS_HELPER=baselineFile=./tests/deprecations-8.1.json&max[direct]=0\" >> $GITHUB_ENV" + - name: "Update dev requirements to latest available for the current PHP even on locked builds as they are not bundled dependencies" run: "composer update ${{ env.COMPOSER_FLAGS }} symfony/phpunit-bridge phpspec/prophecy phpdocumentor/* sebastian/* doctrine/instantiator" diff --git a/tests/deprecations-8.1.json b/tests/deprecations-8.1.json new file mode 100644 index 000000000..ea9967eaf --- /dev/null +++ b/tests/deprecations-8.1.json @@ -0,0 +1,87 @@ +[ + { + "location": "Composer\\Test\\AllFunctionalTest::getTestFiles", + "message": "Return type of Symfony\\Component\\Finder\\Finder::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice", + "count": 1 + }, + { + "location": "Composer\\Test\\AllFunctionalTest::getTestFiles", + "message": "Return type of Symfony\\Component\\Finder\\Finder::count() should either be compatible with Countable::count(): int, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice", + "count": 1 + }, + { + "location": "Composer\\Test\\AllFunctionalTest::getTestFiles", + "message": "Return type of Symfony\\Component\\Finder\\Iterator\\FilterIterator::rewind() should either be compatible with FilterIterator::rewind(): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice", + "count": 1 + }, + { + "location": "Composer\\Test\\AllFunctionalTest::getTestFiles", + "message": "Return type of Symfony\\Component\\Finder\\Iterator\\FileTypeFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice", + "count": 1 + }, + { + "location": "Composer\\Test\\AllFunctionalTest::getTestFiles", + "message": "Return type of Symfony\\Component\\Finder\\Iterator\\RecursiveDirectoryIterator::getChildren() should either be compatible with RecursiveDirectoryIterator::getChildren(): RecursiveDirectoryIterator, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice", + "count": 1 + }, + { + "location": "Composer\\Test\\AllFunctionalTest::getTestFiles", + "message": "Return type of Symfony\\Component\\Finder\\Iterator\\RecursiveDirectoryIterator::rewind() should either be compatible with FilesystemIterator::rewind(): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice", + "count": 1 + }, + { + "location": "Composer\\Test\\AllFunctionalTest::getTestFiles", + "message": "Return type of Symfony\\Component\\Finder\\Iterator\\RecursiveDirectoryIterator::current() should either be compatible with FilesystemIterator::current(): SplFileInfo|FilesystemIterator|string, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice", + "count": 1 + }, + { + "location": "Composer\\Test\\AllFunctionalTest::getTestFiles", + "message": "Return type of Symfony\\Component\\Finder\\Iterator\\ExcludeDirectoryFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice", + "count": 1 + }, + { + "location": "Composer\\Test\\AllFunctionalTest::getTestFiles", + "message": "Return type of Symfony\\Component\\Finder\\Iterator\\ExcludeDirectoryFilterIterator::hasChildren() should either be compatible with RecursiveIterator::hasChildren(): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice", + "count": 1 + }, + { + "location": "Composer\\Test\\AllFunctionalTest::getTestFiles", + "message": "Return type of Symfony\\Component\\Finder\\Iterator\\ExcludeDirectoryFilterIterator::getChildren() should either be compatible with RecursiveIterator::getChildren(): ?RecursiveIterator, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice", + "count": 1 + }, + { + "location": "Composer\\Test\\AllFunctionalTest::getTestFiles", + "message": "Return type of Symfony\\Component\\Finder\\Iterator\\FilterIterator::rewind() should either be compatible with Iterator::rewind(): void, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice", + "count": 1 + }, + { + "location": "Composer\\Test\\AllFunctionalTest::getTestFiles", + "message": "Return type of Symfony\\Component\\Finder\\Iterator\\FilenameFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice", + "count": 1 + }, + { + "location": "Composer\\Test\\AllFunctionalTest::getTestFiles", + "message": "Return type of Symfony\\Component\\Finder\\Iterator\\PathFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice", + "count": 1 + }, + { + "location": "Composer\\Test\\ApplicationTest::testDevWarning", + "message": "Return type of Symfony\\Component\\Console\\Helper\\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice", + "count": 1 + }, + { + "location": "Composer\\Test\\Downloader\\XzDownloaderTest::testErrorMessages", + "message": "Return type of Symfony\\Component\\Finder\\Iterator\\DepthRangeFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice", + "count": 1 + }, + { + "location": "Composer\\Test\\InstallerTest::testIntegration", + "message": "preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated", + "count": 1640 + }, + { + "location": "Composer\\Test\\Package\\Archiver\\ArchivableFilesFinderTest::testManualExcludes", + "message": "Return type of Symfony\\Component\\Finder\\Iterator\\CustomFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice", + "count": 1 + } +] \ No newline at end of file