- Issue created by @catch
- Status changed to Needs review
2 months ago 12:05pm 19 September 2024 - Status changed to RTBC
2 months ago 12:50pm 19 September 2024 - Status changed to Needs work
2 months ago 1:11pm 19 September 2024 - Status changed to Needs review
2 months ago 3:46pm 19 September 2024 - ๐ฌ๐งUnited Kingdom catch
Replied to the comment - I think it's correct as-is.
- Status changed to RTBC
2 months ago 5:29pm 19 September 2024 - ๐ฎ๐นItaly mondrake ๐ฎ๐น
Fair point, this is a PHP native class.
BTW I am now curious to understand from where the DebugClassloader is getting the potential typehint given itโs not in an annotation of a .php file. I will dig a bit.
- ๐ฎ๐นItaly mondrake ๐ฎ๐น
What is the class/method that is causing the deprecation, though? I tried removing the return types from the ArrayAccess implementation methods in
Drupal\Core\Template\Attribute
and run locally theDrupal\Tests\Core\Template\AttributeTest
test, but it does not trigger in that case. - ๐ฌ๐งUnited Kingdom catch
@mondarake it's in the OpenTelemetry code base, not Drupal:
1) /builds/project/drupal/vendor/symfony/error-handler/DebugClassLoader.php:341 Method "ArrayAccess::offsetGet()" might add "mixed" as a native return type declaration in the future. Do the same in implementation "OpenTelemetry\SDK\Common\Attribute\AttributesBuilder" now to avoid errors or add an explicit @return annotation to suppress this message.
- ๐ฎ๐นItaly mondrake ๐ฎ๐น
OK but then this is an indirect deprecation, and I would suggest to add the ignore a bit below in the apposite section
# Indirect deprecations. These are not in Drupal's remit to fix, but it is # worth keeping track of dependencies' issues. %Method "[^"]+" might add "[^"]+" as a native return type declaration in the future. Do the same in implementation "org\\bovigo\\vfs\\[^"]+" now to avoid errors or add an explicit @return annotation to suppress this message%
- ๐ฎ๐นItaly mondrake ๐ฎ๐น
With symfony/phpunit-bridge we could skip indirect deprecations; with our replacement not, at least as-is.
- ๐ฌ๐งUnited Kingdom catch
That's a good idea, hadn't even noticed that section...
Made a commit for this, but for whatever reason I can't currently reproduce the deprecation notice running tests locally so not properly tested yet.
- ๐ฎ๐นItaly mondrake ๐ฎ๐น
Test failures seem random to me.
Would be good to run the performance tests, but I cannot trigger them manually.
- ๐ฌ๐งUnited Kingdom catch
Kicked off a run with the OTEL_COLLECTOR environment variable set, which should be close/identical to the scheduled job.
- ๐ณ๐ฟNew Zealand quietone
All questions have been answered. I have updated credit.
-
larowlan โ
committed c39eaf1a on 11.x
Issue #3475533 by catch, mondrake: Suppress Symfony debug classloader...
-
larowlan โ
committed c39eaf1a on 11.x
- ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
Committed to 11.x - does this need a backport?