Skip to content

Commit 77d81a0

Browse files
Merge branch '3.4' into 4.4
* 3.4: Skip Doctrine DBAL on php 8 until we have a compatible version. [DomCrawler] Catch expected ValueError. [Validator] Catch expected ValueError. [VarDumper] ReflectionFunction::isDisabled() is deprecated. [PropertyAccess] Parse php 8 TypeErrors correctly. [Intl] Fix call to ReflectionProperty::getValue() for static properties. [HttpKernel] Prevent calling method_exists() with non-string values. [Debug] php 8 does not pass $context to error handlers. [Config] Removed implicit cast of ReflectionProperty to string. [Debug] Undefined variables raise a warning in php 8. [Debug] Skip test that would trigger a fatal error on php 8. Address deprecation of ReflectionType::getClass(). Properties $originalName and $mimeType are never null in UploadedFile
2 parents 494d0c7 + 5ca516a commit 77d81a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Caster/ReflectionCaster.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,10 @@ private static function addExtra(array &$a, \Reflector $c)
376376
private static function addMap(array &$a, \Reflector $c, array $map, string $prefix = Caster::PREFIX_VIRTUAL)
377377
{
378378
foreach ($map as $k => $m) {
379+
if (\PHP_VERSION_ID >= 80000 && 'isDisabled' === $k) {
380+
continue;
381+
}
382+
379383
if (method_exists($c, $m) && false !== ($m = $c->$m()) && null !== $m) {
380384
$a[$prefix.$k] = $m instanceof \Reflector ? $m->name : $m;
381385
}

0 commit comments

Comments
 (0)