Closed
Description
Symfony version(s) affected
6
Description
Calling str_contains when there is no last error will cause deprecation warning
How to reproduce
run integration test that you call remove method and you will have a deprecation warning with phpunit 10 on line 201 of file Filesystem.php
Possible Solution
Add default value to last error or maybe test if there is no error first
Additional Context
No response