Skip to content
Snippets Groups Projects
Verified Commit c5c85f18 authored by Dave Long's avatar Dave Long
Browse files

Revert "Issue #3425337 by mondrake: Fix root namespace classes...

Revert "Issue #3425337 by mondrake: Fix root namespace classes DebugClassLoader forward compatibility warnings"

This reverts commit ea9cc753.
parent 8756d339
No related branches found
No related tags found
29 merge requests!11131[10.4.x-only-DO-NOT-MERGE]: Issue ##2842525 Ajax attached to Views exposed filter form does not trigger callbacks,!9470[10.3.x-only-DO-NOT-MERGE]: #3331771 Fix file_get_contents(): Passing null to parameter,!8540Issue #3457061: Bootstrap Modal dialog Not closing after 10.3.0 Update,!8528Issue #3456871 by Tim Bozeman: Support NULL services,!8373Issue #3427374 by danflanagan8, Vighneshh: taxonomy_tid ViewsArgumentDefault...,!7526Expose roles in response,!7352Draft: Resolve #3203489 "Set filename as",!3878Removed unused condition head title for views,!3818Issue #2140179: $entity->original gets stale between updates,!3742Issue #3328429: Create item list field formatter for displaying ordered and unordered lists,!3731Claro: role=button on status report items,!3651Issue #3347736: Create new SDC component for Olivero (header-search),!3531Issue #3336994: StringFormatter always displays links to entity even if the user in context does not have access,!3355Issue #3209129: Scrolling problems when adding a block via layout builder,!3154Fixes #2987987 - CSRF token validation broken on routes with optional parameters.,!3133core/modules/system/css/components/hidden.module.css,!2964Issue #2865710 : Dependencies from only one instance of a widget are used in display modes,!2812Issue #3312049: [Followup] Fix Drupal.Commenting.FunctionComment.MissingReturnType returns for NULL,!2794Issue #3100732: Allow specifying `meta` data on JSON:API objects,!2378Issue #2875033: Optimize joins and table selection in SQL entity query implementation,!2062Issue #3246454: Add weekly granularity to views date sort,!1105Issue #3025039: New non translatable field on translatable content throws error,!1073issue #3191727: Focus states on mobile second level navigation items fixed,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!877Issue #2708101: Default value for link text is not saved,!617Issue #3043725: Provide a Entity Handler for user cancelation,!579Issue #2230909: Simple decimals fail to pass validation,!560Move callback classRemove outside of the loop,!555Issue #3202493
Pipeline #112308 canceled
Pipeline: drupal

#112310

    Showing
    with 186 additions and 92 deletions
    ...@@ -115,7 +115,8 @@ protected function checkListHasItemWithContent(array $scaffold_files) { ...@@ -115,7 +115,8 @@ protected function checkListHasItemWithContent(array $scaffold_files) {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function getIterator(): \ArrayIterator { #[\ReturnTypeWillChange]
    public function getIterator() {
    return new \ArrayIterator($this->scaffoldFilesByProject); return new \ArrayIterator($this->scaffoldFilesByProject);
    } }
    ......
    ...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
    %Method "Twig\\TokenParser\\TokenParserInterface::[^"]+" might add "[^"]+" as a native return type declaration in the future. Do the same in (child class|implementation) "[^"]+" now to avoid errors or add an explicit @return annotation to suppress this message% %Method "Twig\\TokenParser\\TokenParserInterface::[^"]+" might add "[^"]+" as a native return type declaration in the future. Do the same in (child class|implementation) "[^"]+" now to avoid errors or add an explicit @return annotation to suppress this message%
    %Method "WebDriver\\Service\\CurlServiceInterface::[^"]+" might add "[^"]+" as a native return type declaration in the future. Do the same in implementation "[^"]+" now to avoid errors or add an explicit @return annotation to suppress this message% %Method "WebDriver\\Service\\CurlServiceInterface::[^"]+" might add "[^"]+" as a native return type declaration in the future. Do the same in implementation "[^"]+" now to avoid errors or add an explicit @return annotation to suppress this message%
    # Skip root namespace native DebugClassLoader forward compatibility warnings.
    # These mostly refer to PHP native classes, could be fixed for PHP 8.1.
    %Method "[^\\]+::\w+\(\)" might add "[^"]+" as a native return type declaration in the future. Do the same in (child class|implementation) "[^"]+" now to avoid errors or add an explicit @return annotation to suppress this message%
    # The following deprecation is listed for Twig 2 compatibility when unit # The following deprecation is listed for Twig 2 compatibility when unit
    # testing using \Symfony\Component\ErrorHandler\DebugClassLoader. # testing using \Symfony\Component\ErrorHandler\DebugClassLoader.
    %The "Twig\\Environment::getTemplateClass\(\)" method is considered internal\. It may change without further notice\. You should not extend it from "Drupal\\Core\\Template\\TwigEnvironment"\.% %The "Twig\\Environment::getTemplateClass\(\)" method is considered internal\. It may change without further notice\. You should not extend it from "Drupal\\Core\\Template\\TwigEnvironment"\.%
    ......
    ...@@ -47,7 +47,8 @@ public function __construct(StaticReflectionParser $staticReflectionParser) ...@@ -47,7 +47,8 @@ public function __construct(StaticReflectionParser $staticReflectionParser)
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getName(): string #[\ReturnTypeWillChange]
    public function getName()
    { {
    return $this->staticReflectionParser->getClassName(); return $this->staticReflectionParser->getClassName();
    } }
    ...@@ -55,7 +56,8 @@ public function getName(): string ...@@ -55,7 +56,8 @@ public function getName(): string
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getDocComment(): string|FALSE #[\ReturnTypeWillChange]
    public function getDocComment()
    { {
    return $this->staticReflectionParser->getDocComment(); return $this->staticReflectionParser->getDocComment();
    } }
    ...@@ -63,7 +65,8 @@ public function getDocComment(): string|FALSE ...@@ -63,7 +65,8 @@ public function getDocComment(): string|FALSE
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getNamespaceName(): string #[\ReturnTypeWillChange]
    public function getNamespaceName()
    { {
    return $this->staticReflectionParser->getNamespaceName(); return $this->staticReflectionParser->getNamespaceName();
    } }
    ...@@ -91,7 +94,8 @@ public function hasClassAttribute(string $attribute) ...@@ -91,7 +94,8 @@ public function hasClassAttribute(string $attribute)
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getMethod($name): \ReflectionMethod #[\ReturnTypeWillChange]
    public function getMethod($name)
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -99,7 +103,8 @@ public function getMethod($name): \ReflectionMethod ...@@ -99,7 +103,8 @@ public function getMethod($name): \ReflectionMethod
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getProperty($name): \ReflectionProperty #[\ReturnTypeWillChange]
    public function getProperty($name)
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -115,7 +120,8 @@ public static function export($argument, $return = false) ...@@ -115,7 +120,8 @@ public static function export($argument, $return = false)
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getConstant($name): mixed #[\ReturnTypeWillChange]
    public function getConstant($name)
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -123,7 +129,8 @@ public function getConstant($name): mixed ...@@ -123,7 +129,8 @@ public function getConstant($name): mixed
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getConstructor(): ?\ReflectionMethod #[\ReturnTypeWillChange]
    public function getConstructor()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -131,7 +138,8 @@ public function getConstructor(): ?\ReflectionMethod ...@@ -131,7 +138,8 @@ public function getConstructor(): ?\ReflectionMethod
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getDefaultProperties(): array #[\ReturnTypeWillChange]
    public function getDefaultProperties()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -139,7 +147,8 @@ public function getDefaultProperties(): array ...@@ -139,7 +147,8 @@ public function getDefaultProperties(): array
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getEndLine(): int|FALSE #[\ReturnTypeWillChange]
    public function getEndLine()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -147,7 +156,8 @@ public function getEndLine(): int|FALSE ...@@ -147,7 +156,8 @@ public function getEndLine(): int|FALSE
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getExtension(): ?\ReflectionExtension #[\ReturnTypeWillChange]
    public function getExtension()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -155,7 +165,8 @@ public function getExtension(): ?\ReflectionExtension ...@@ -155,7 +165,8 @@ public function getExtension(): ?\ReflectionExtension
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getExtensionName(): string|FALSE #[\ReturnTypeWillChange]
    public function getExtensionName()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -163,7 +174,8 @@ public function getExtensionName(): string|FALSE ...@@ -163,7 +174,8 @@ public function getExtensionName(): string|FALSE
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getFileName(): string|FALSE #[\ReturnTypeWillChange]
    public function getFileName()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -171,7 +183,8 @@ public function getFileName(): string|FALSE ...@@ -171,7 +183,8 @@ public function getFileName(): string|FALSE
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getInterfaceNames(): array #[\ReturnTypeWillChange]
    public function getInterfaceNames()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -179,7 +192,8 @@ public function getInterfaceNames(): array ...@@ -179,7 +192,8 @@ public function getInterfaceNames(): array
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getInterfaces(): array #[\ReturnTypeWillChange]
    public function getInterfaces()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -187,7 +201,8 @@ public function getInterfaces(): array ...@@ -187,7 +201,8 @@ public function getInterfaces(): array
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getMethods($filter = null): array #[\ReturnTypeWillChange]
    public function getMethods($filter = null)
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -195,7 +210,8 @@ public function getMethods($filter = null): array ...@@ -195,7 +210,8 @@ public function getMethods($filter = null): array
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getModifiers(): int #[\ReturnTypeWillChange]
    public function getModifiers()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -203,7 +219,8 @@ public function getModifiers(): int ...@@ -203,7 +219,8 @@ public function getModifiers(): int
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getParentClass(): \ReflectionClass|FALSE #[\ReturnTypeWillChange]
    public function getParentClass()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -211,7 +228,8 @@ public function getParentClass(): \ReflectionClass|FALSE ...@@ -211,7 +228,8 @@ public function getParentClass(): \ReflectionClass|FALSE
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getProperties($filter = null): array #[\ReturnTypeWillChange]
    public function getProperties($filter = null)
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -219,7 +237,8 @@ public function getProperties($filter = null): array ...@@ -219,7 +237,8 @@ public function getProperties($filter = null): array
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getShortName(): string #[\ReturnTypeWillChange]
    public function getShortName()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -227,7 +246,8 @@ public function getShortName(): string ...@@ -227,7 +246,8 @@ public function getShortName(): string
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getStartLine(): int|FALSE #[\ReturnTypeWillChange]
    public function getStartLine()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -235,7 +255,8 @@ public function getStartLine(): int|FALSE ...@@ -235,7 +255,8 @@ public function getStartLine(): int|FALSE
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getStaticProperties(): ?array #[\ReturnTypeWillChange]
    public function getStaticProperties()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -243,7 +264,8 @@ public function getStaticProperties(): ?array ...@@ -243,7 +264,8 @@ public function getStaticProperties(): ?array
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getStaticPropertyValue($name, $default = ''): mixed #[\ReturnTypeWillChange]
    public function getStaticPropertyValue($name, $default = '')
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -251,7 +273,8 @@ public function getStaticPropertyValue($name, $default = ''): mixed ...@@ -251,7 +273,8 @@ public function getStaticPropertyValue($name, $default = ''): mixed
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getTraitAliases(): array #[\ReturnTypeWillChange]
    public function getTraitAliases()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -259,7 +282,8 @@ public function getTraitAliases(): array ...@@ -259,7 +282,8 @@ public function getTraitAliases(): array
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getTraitNames(): array #[\ReturnTypeWillChange]
    public function getTraitNames()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -267,7 +291,8 @@ public function getTraitNames(): array ...@@ -267,7 +291,8 @@ public function getTraitNames(): array
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getTraits(): array #[\ReturnTypeWillChange]
    public function getTraits()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -275,7 +300,8 @@ public function getTraits(): array ...@@ -275,7 +300,8 @@ public function getTraits(): array
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function hasConstant($name): bool #[\ReturnTypeWillChange]
    public function hasConstant($name)
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -283,7 +309,8 @@ public function hasConstant($name): bool ...@@ -283,7 +309,8 @@ public function hasConstant($name): bool
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function hasMethod($name): bool #[\ReturnTypeWillChange]
    public function hasMethod($name)
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -291,7 +318,8 @@ public function hasMethod($name): bool ...@@ -291,7 +318,8 @@ public function hasMethod($name): bool
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function hasProperty($name): bool #[\ReturnTypeWillChange]
    public function hasProperty($name)
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -299,7 +327,8 @@ public function hasProperty($name): bool ...@@ -299,7 +327,8 @@ public function hasProperty($name): bool
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function implementsInterface($interface): bool #[\ReturnTypeWillChange]
    public function implementsInterface($interface)
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -307,7 +336,8 @@ public function implementsInterface($interface): bool ...@@ -307,7 +336,8 @@ public function implementsInterface($interface): bool
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function inNamespace(): bool #[\ReturnTypeWillChange]
    public function inNamespace()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -315,7 +345,8 @@ public function inNamespace(): bool ...@@ -315,7 +345,8 @@ public function inNamespace(): bool
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function isAbstract(): bool #[\ReturnTypeWillChange]
    public function isAbstract()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -323,7 +354,8 @@ public function isAbstract(): bool ...@@ -323,7 +354,8 @@ public function isAbstract(): bool
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function isCloneable(): bool #[\ReturnTypeWillChange]
    public function isCloneable()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -331,7 +363,8 @@ public function isCloneable(): bool ...@@ -331,7 +363,8 @@ public function isCloneable(): bool
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function isFinal(): bool #[\ReturnTypeWillChange]
    public function isFinal()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -339,7 +372,8 @@ public function isFinal(): bool ...@@ -339,7 +372,8 @@ public function isFinal(): bool
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function isInstance($object): bool #[\ReturnTypeWillChange]
    public function isInstance($object)
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -347,7 +381,8 @@ public function isInstance($object): bool ...@@ -347,7 +381,8 @@ public function isInstance($object): bool
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function isInstantiable(): bool #[\ReturnTypeWillChange]
    public function isInstantiable()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -355,7 +390,8 @@ public function isInstantiable(): bool ...@@ -355,7 +390,8 @@ public function isInstantiable(): bool
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function isInterface(): bool #[\ReturnTypeWillChange]
    public function isInterface()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -363,7 +399,8 @@ public function isInterface(): bool ...@@ -363,7 +399,8 @@ public function isInterface(): bool
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function isInternal(): bool #[\ReturnTypeWillChange]
    public function isInternal()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -371,7 +408,8 @@ public function isInternal(): bool ...@@ -371,7 +408,8 @@ public function isInternal(): bool
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function isIterateable(): bool #[\ReturnTypeWillChange]
    public function isIterateable()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -379,7 +417,8 @@ public function isIterateable(): bool ...@@ -379,7 +417,8 @@ public function isIterateable(): bool
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function isSubclassOf($class): bool #[\ReturnTypeWillChange]
    public function isSubclassOf($class)
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -387,7 +426,8 @@ public function isSubclassOf($class): bool ...@@ -387,7 +426,8 @@ public function isSubclassOf($class): bool
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function isTrait(): bool #[\ReturnTypeWillChange]
    public function isTrait()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -395,7 +435,8 @@ public function isTrait(): bool ...@@ -395,7 +435,8 @@ public function isTrait(): bool
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function isUserDefined(): bool #[\ReturnTypeWillChange]
    public function isUserDefined()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -403,7 +444,8 @@ public function isUserDefined(): bool ...@@ -403,7 +444,8 @@ public function isUserDefined(): bool
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function newInstanceArgs(array $args = []): ?object #[\ReturnTypeWillChange]
    public function newInstanceArgs(array $args = [])
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -411,7 +453,8 @@ public function newInstanceArgs(array $args = []): ?object ...@@ -411,7 +453,8 @@ public function newInstanceArgs(array $args = []): ?object
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function newInstanceWithoutConstructor(): object #[\ReturnTypeWillChange]
    public function newInstanceWithoutConstructor()
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -419,7 +462,8 @@ public function newInstanceWithoutConstructor(): object ...@@ -419,7 +462,8 @@ public function newInstanceWithoutConstructor(): object
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function setStaticPropertyValue($name, $value): void #[\ReturnTypeWillChange]
    public function setStaticPropertyValue($name, $value)
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -427,7 +471,8 @@ public function setStaticPropertyValue($name, $value): void ...@@ -427,7 +471,8 @@ public function setStaticPropertyValue($name, $value): void
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function getConstants(?int $filter = null): array #[\ReturnTypeWillChange]
    public function getConstants(?int $filter = null)
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ...@@ -435,7 +480,8 @@ public function getConstants(?int $filter = null): array ...@@ -435,7 +480,8 @@ public function getConstants(?int $filter = null): array
    /** /**
    * {@inheritDoc} * {@inheritDoc}
    */ */
    public function newInstance(mixed ...$args): object #[\ReturnTypeWillChange]
    public function newInstance(mixed ...$args)
    { {
    throw new ReflectionException('Method not implemented'); throw new ReflectionException('Method not implemented');
    } }
    ......
    ...@@ -23,7 +23,8 @@ public function __construct($path, $regex) { ...@@ -23,7 +23,8 @@ public function __construct($path, $regex) {
    /** /**
    * Implements \RegexIterator::accept(). * Implements \RegexIterator::accept().
    */ */
    public function accept(): bool { #[\ReturnTypeWillChange]
    public function accept() {
    /** @var \SplFileInfo $file_info */ /** @var \SplFileInfo $file_info */
    $file_info = $this->getInnerIterator()->current(); $file_info = $this->getInnerIterator()->current();
    return $file_info->isFile() && preg_match($this->getRegex(), $file_info->getFilename()); return $file_info->isFile() && preg_match($this->getRegex(), $file_info->getFilename());
    ......
    ...@@ -142,7 +142,8 @@ public function removeInstanceId($instance_id) { ...@@ -142,7 +142,8 @@ public function removeInstanceId($instance_id) {
    $this->remove($instance_id); $this->remove($instance_id);
    } }
    public function getIterator(): \ArrayIterator { #[\ReturnTypeWillChange]
    public function getIterator() {
    $instances = []; $instances = [];
    foreach ($this->getInstanceIds() as $instance_id) { foreach ($this->getInstanceIds() as $instance_id) {
    $instances[$instance_id] = $this->get($instance_id); $instances[$instance_id] = $this->get($instance_id);
    ...@@ -153,7 +154,8 @@ public function getIterator(): \ArrayIterator { ...@@ -153,7 +154,8 @@ public function getIterator(): \ArrayIterator {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function count(): int { #[\ReturnTypeWillChange]
    public function count() {
    return count($this->instanceIds); return count($this->instanceIds);
    } }
    ......
    ...@@ -41,14 +41,16 @@ public function __toString() { ...@@ -41,14 +41,16 @@ public function __toString() {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function count(): int { #[\ReturnTypeWillChange]
    public function count() {
    return mb_strlen($this->string); return mb_strlen($this->string);
    } }
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function jsonSerialize(): string { #[\ReturnTypeWillChange]
    public function jsonSerialize() {
    return $this->__toString(); return $this->__toString();
    } }
    ......
    ...@@ -114,7 +114,8 @@ public function onChange($name) { ...@@ -114,7 +114,8 @@ public function onChange($name) {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function getIterator(): \ArrayIterator { #[\ReturnTypeWillChange]
    public function getIterator() {
    return new \ArrayIterator($this->getElements()); return new \ArrayIterator($this->getElements());
    } }
    ......
    ...@@ -90,7 +90,8 @@ public function __construct($conjunction) { ...@@ -90,7 +90,8 @@ public function __construct($conjunction) {
    * size of its conditional array minus one, because one element is the * size of its conditional array minus one, because one element is the
    * conjunction. * conjunction.
    */ */
    public function count(): int { #[\ReturnTypeWillChange]
    public function count() {
    return count($this->conditions) - 1; return count($this->conditions) - 1;
    } }
    ......
    ...@@ -179,7 +179,8 @@ protected function getInsertPlaceholderFragment(array $nested_insert_values, arr ...@@ -179,7 +179,8 @@ protected function getInsertPlaceholderFragment(array $nested_insert_values, arr
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function count(): int { #[\ReturnTypeWillChange]
    public function count() {
    return count($this->insertValues); return count($this->insertValues);
    } }
    ......
    ...@@ -687,7 +687,8 @@ public function getTranslatableFields($include_computed = TRUE) { ...@@ -687,7 +687,8 @@ public function getTranslatableFields($include_computed = TRUE) {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function getIterator(): \ArrayIterator { #[\ReturnTypeWillChange]
    public function getIterator() {
    return new \ArrayIterator($this->getFields()); return new \ArrayIterator($this->getFields());
    } }
    ......
    ...@@ -69,7 +69,8 @@ public function onChange($property_name) { ...@@ -69,7 +69,8 @@ public function onChange($property_name) {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function getIterator(): \ArrayIterator { #[\ReturnTypeWillChange]
    public function getIterator() {
    if (isset($this->entity)) { if (isset($this->entity)) {
    return $this->getConfigTypedData()->getIterator(); return $this->getConfigTypedData()->getIterator();
    } }
    ......
    ...@@ -162,7 +162,8 @@ public function applyDefaultValue($notify = TRUE) { ...@@ -162,7 +162,8 @@ public function applyDefaultValue($notify = TRUE) {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function getIterator(): \ArrayIterator { #[\ReturnTypeWillChange]
    public function getIterator() {
    return $this->entity instanceof \IteratorAggregate ? $this->entity->getIterator() : new \ArrayIterator([]); return $this->entity instanceof \IteratorAggregate ? $this->entity->getIterator() : new \ArrayIterator([]);
    } }
    ......
    ...@@ -58,14 +58,16 @@ public function __toString() { ...@@ -58,14 +58,16 @@ public function __toString() {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function jsonSerialize(): string { #[\ReturnTypeWillChange]
    public function jsonSerialize() {
    return $this->__toString(); return $this->__toString();
    } }
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function count(): int { #[\ReturnTypeWillChange]
    public function count() {
    return mb_strlen($this->__toString()); return mb_strlen($this->__toString());
    } }
    ......
    ...@@ -43,35 +43,40 @@ public function __construct(\SessionHandlerInterface $wrapped_session_handler, $ ...@@ -43,35 +43,40 @@ public function __construct(\SessionHandlerInterface $wrapped_session_handler, $
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function close(): bool { #[\ReturnTypeWillChange]
    public function close() {
    return $this->wrappedSessionHandler->close(); return $this->wrappedSessionHandler->close();
    } }
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function destroy($session_id): bool { #[\ReturnTypeWillChange]
    public function destroy($session_id) {
    return $this->wrappedSessionHandler->destroy($session_id); return $this->wrappedSessionHandler->destroy($session_id);
    } }
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function gc($max_lifetime): int|FALSE { #[\ReturnTypeWillChange]
    public function gc($max_lifetime) {
    return $this->wrappedSessionHandler->gc($max_lifetime); return $this->wrappedSessionHandler->gc($max_lifetime);
    } }
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function open($save_path, $session_id): bool { #[\ReturnTypeWillChange]
    public function open($save_path, $session_id) {
    return $this->wrappedSessionHandler->open($save_path, $session_id); return $this->wrappedSessionHandler->open($save_path, $session_id);
    } }
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function read($session_id): string|FALSE { #[\ReturnTypeWillChange]
    public function read($session_id) {
    $value = $this->wrappedSessionHandler->read($session_id); $value = $this->wrappedSessionHandler->read($session_id);
    $this->readSessions[$session_id] = $value; $this->readSessions[$session_id] = $value;
    return $value; return $value;
    ...@@ -80,7 +85,8 @@ public function read($session_id): string|FALSE { ...@@ -80,7 +85,8 @@ public function read($session_id): string|FALSE {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function write($session_id, $session_data): bool { #[\ReturnTypeWillChange]
    public function write($session_id, $session_data) {
    // Only write the session when it has been modified. // Only write the session when it has been modified.
    if (isset($this->readSessions[$session_id]) && $this->readSessions[$session_id] === $session_data) { if (isset($this->readSessions[$session_id]) && $this->readSessions[$session_id] === $session_data) {
    return TRUE; return TRUE;
    ......
    ...@@ -90,17 +90,18 @@ public function __construct($attributes = []) { ...@@ -90,17 +90,18 @@ public function __construct($attributes = []) {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function offsetGet($name): mixed { #[\ReturnTypeWillChange]
    public function offsetGet($name) {
    if (isset($this->storage[$name])) { if (isset($this->storage[$name])) {
    return $this->storage[$name]; return $this->storage[$name];
    } }
    return NULL;
    } }
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function offsetSet($name, $value): void { #[\ReturnTypeWillChange]
    public function offsetSet($name, $value) {
    $this->storage[$name] = $this->createAttributeValue($name, $value); $this->storage[$name] = $this->createAttributeValue($name, $value);
    } }
    ...@@ -153,14 +154,16 @@ protected function createAttributeValue($name, $value) { ...@@ -153,14 +154,16 @@ protected function createAttributeValue($name, $value) {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function offsetUnset($name): void { #[\ReturnTypeWillChange]
    public function offsetUnset($name) {
    unset($this->storage[$name]); unset($this->storage[$name]);
    } }
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function offsetExists($name): bool { #[\ReturnTypeWillChange]
    public function offsetExists($name) {
    return isset($this->storage[$name]); return isset($this->storage[$name]);
    } }
    ...@@ -355,7 +358,8 @@ public function __clone() { ...@@ -355,7 +358,8 @@ public function __clone() {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function getIterator(): \ArrayIterator { #[\ReturnTypeWillChange]
    public function getIterator() {
    return new \ArrayIterator($this->storage); return new \ArrayIterator($this->storage);
    } }
    ...@@ -372,7 +376,8 @@ public function storage() { ...@@ -372,7 +376,8 @@ public function storage() {
    * @return string * @return string
    * The safe string content. * The safe string content.
    */ */
    public function jsonSerialize(): string { #[\ReturnTypeWillChange]
    public function jsonSerialize() {
    return (string) $this; return (string) $this;
    } }
    ......
    ...@@ -35,14 +35,16 @@ class AttributeArray extends AttributeValueBase implements \ArrayAccess, \Iterat ...@@ -35,14 +35,16 @@ class AttributeArray extends AttributeValueBase implements \ArrayAccess, \Iterat
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function offsetGet($offset): mixed { #[\ReturnTypeWillChange]
    public function offsetGet($offset) {
    return $this->value[$offset]; return $this->value[$offset];
    } }
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function offsetSet($offset, $value): void { #[\ReturnTypeWillChange]
    public function offsetSet($offset, $value) {
    if (isset($offset)) { if (isset($offset)) {
    $this->value[$offset] = $value; $this->value[$offset] = $value;
    } }
    ...@@ -54,14 +56,16 @@ public function offsetSet($offset, $value): void { ...@@ -54,14 +56,16 @@ public function offsetSet($offset, $value): void {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function offsetUnset($offset): void { #[\ReturnTypeWillChange]
    public function offsetUnset($offset) {
    unset($this->value[$offset]); unset($this->value[$offset]);
    } }
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function offsetExists($offset): bool { #[\ReturnTypeWillChange]
    public function offsetExists($offset) {
    return isset($this->value[$offset]); return isset($this->value[$offset]);
    } }
    ...@@ -77,7 +81,8 @@ public function __toString() { ...@@ -77,7 +81,8 @@ public function __toString() {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function getIterator(): \ArrayIterator { #[\ReturnTypeWillChange]
    public function getIterator() {
    return new \ArrayIterator($this->value); return new \ArrayIterator($this->value);
    } }
    ......
    ...@@ -118,7 +118,8 @@ public function isEmpty() { ...@@ -118,7 +118,8 @@ public function isEmpty() {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function offsetExists($offset): bool { #[\ReturnTypeWillChange]
    public function offsetExists($offset) {
    $this->ensureComputedValue(); $this->ensureComputedValue();
    return parent::offsetExists($offset); return parent::offsetExists($offset);
    } }
    ...@@ -126,7 +127,8 @@ public function offsetExists($offset): bool { ...@@ -126,7 +127,8 @@ public function offsetExists($offset): bool {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function getIterator(): \ArrayIterator { #[\ReturnTypeWillChange]
    public function getIterator() {
    $this->ensureComputedValue(); $this->ensureComputedValue();
    return parent::getIterator(); return parent::getIterator();
    } }
    ...@@ -134,7 +136,8 @@ public function getIterator(): \ArrayIterator { ...@@ -134,7 +136,8 @@ public function getIterator(): \ArrayIterator {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function count(): int { #[\ReturnTypeWillChange]
    public function count() {
    $this->ensureComputedValue(); $this->ensureComputedValue();
    return parent::count(); return parent::count();
    } }
    ......
    ...@@ -314,7 +314,8 @@ public function addConstraint($constraint_name, $options = NULL) { ...@@ -314,7 +314,8 @@ public function addConstraint($constraint_name, $options = NULL) {
    * This is for BC support only. * This is for BC support only.
    * @todo: Remove in https://www.drupal.org/node/1928868. * @todo: Remove in https://www.drupal.org/node/1928868.
    */ */
    public function offsetExists($offset): bool { #[\ReturnTypeWillChange]
    public function offsetExists($offset) {
    // PHP's array access does not work correctly with isset(), so we have to // PHP's array access does not work correctly with isset(), so we have to
    // bake isset() in here. See https://bugs.php.net/bug.php?id=41727. // bake isset() in here. See https://bugs.php.net/bug.php?id=41727.
    return array_key_exists($offset, $this->definition) && isset($this->definition[$offset]); return array_key_exists($offset, $this->definition) && isset($this->definition[$offset]);
    ...@@ -326,7 +327,8 @@ public function offsetExists($offset): bool { ...@@ -326,7 +327,8 @@ public function offsetExists($offset): bool {
    * This is for BC support only. * This is for BC support only.
    * @todo: Remove in https://www.drupal.org/node/1928868. * @todo: Remove in https://www.drupal.org/node/1928868.
    */ */
    public function &offsetGet($offset): mixed { #[\ReturnTypeWillChange]
    public function &offsetGet($offset) {
    if (!isset($this->definition[$offset])) { if (!isset($this->definition[$offset])) {
    $this->definition[$offset] = NULL; $this->definition[$offset] = NULL;
    } }
    ...@@ -339,7 +341,8 @@ public function &offsetGet($offset): mixed { ...@@ -339,7 +341,8 @@ public function &offsetGet($offset): mixed {
    * This is for BC support only. * This is for BC support only.
    * @todo: Remove in https://www.drupal.org/node/1928868. * @todo: Remove in https://www.drupal.org/node/1928868.
    */ */
    public function offsetSet($offset, $value): void { #[\ReturnTypeWillChange]
    public function offsetSet($offset, $value) {
    $this->definition[$offset] = $value; $this->definition[$offset] = $value;
    } }
    ...@@ -349,7 +352,8 @@ public function offsetSet($offset, $value): void { ...@@ -349,7 +352,8 @@ public function offsetSet($offset, $value): void {
    * This is for BC support only. * This is for BC support only.
    * @todo: Remove in https://www.drupal.org/node/1928868. * @todo: Remove in https://www.drupal.org/node/1928868.
    */ */
    public function offsetUnset($offset): void { #[\ReturnTypeWillChange]
    public function offsetUnset($offset) {
    unset($this->definition[$offset]); unset($this->definition[$offset]);
    } }
    ......
    ...@@ -170,7 +170,8 @@ public function first() { ...@@ -170,7 +170,8 @@ public function first() {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function offsetExists($offset): bool { #[\ReturnTypeWillChange]
    public function offsetExists($offset) {
    // We do not want to throw exceptions here, so we do not use get(). // We do not want to throw exceptions here, so we do not use get().
    return isset($this->list[$offset]); return isset($this->list[$offset]);
    } }
    ...@@ -178,21 +179,24 @@ public function offsetExists($offset): bool { ...@@ -178,21 +179,24 @@ public function offsetExists($offset): bool {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function offsetUnset($offset): void { #[\ReturnTypeWillChange]
    public function offsetUnset($offset) {
    $this->removeItem($offset); $this->removeItem($offset);
    } }
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function offsetGet($offset): mixed { #[\ReturnTypeWillChange]
    public function offsetGet($offset) {
    return $this->get($offset); return $this->get($offset);
    } }
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function offsetSet($offset, $value): void { #[\ReturnTypeWillChange]
    public function offsetSet($offset, $value) {
    if (!isset($offset)) { if (!isset($offset)) {
    // The [] operator has been used. // The [] operator has been used.
    $this->appendItem($value); $this->appendItem($value);
    ...@@ -231,14 +235,16 @@ public function getItemDefinition() { ...@@ -231,14 +235,16 @@ public function getItemDefinition() {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function getIterator(): \ArrayIterator { #[\ReturnTypeWillChange]
    public function getIterator() {
    return new \ArrayIterator($this->list); return new \ArrayIterator($this->list);
    } }
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function count(): int { #[\ReturnTypeWillChange]
    public function count() {
    return count($this->list); return count($this->list);
    } }
    ......
    ...@@ -183,7 +183,8 @@ public function toArray() { ...@@ -183,7 +183,8 @@ public function toArray() {
    /** /**
    * {@inheritdoc} * {@inheritdoc}
    */ */
    public function getIterator(): \ArrayIterator { #[\ReturnTypeWillChange]
    public function getIterator() {
    return new \ArrayIterator($this->getProperties()); return new \ArrayIterator($this->getProperties());
    } }
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment