Commit 3344f500 authored by Simon Schaufelberger's avatar Simon Schaufelberger Committed by Christian Kuhn
Browse files

[BUGFIX] Fix doctype annotations

According to https://docs.phpdoc.org/latest/guide/guides/types.html#union-types
it is only allowed to use "string|null" and not "?string"

Resolves: #96407
Releases: main, 11.5
Change-Id: I4e9ec53d05feb5cfffc4eebc29de447d6225ab66
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72774


Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent ad385665
......@@ -42,7 +42,7 @@ class JavaScriptModuleInstruction implements \JsonSerializable
/**
* @param string $name RequireJS module name
* @param ?string $exportName (optional) name used internally to export the module
* @param string|null $exportName (optional) name used internally to export the module
* @return static
*/
public static function forRequireJS(string $name, string $exportName = null): self
......
......@@ -50,7 +50,7 @@ class MetaDataTest extends UnitTestCase
}
/**
* @param ?string $type
* @param string|null $type
* @param bool $isExtension
* @param bool $isFramework
* @test
......
......@@ -56,7 +56,7 @@ class LazyLoadingProxy implements \Iterator, LoadingStrategyInterface
* @param DomainObjectInterface $parentObject The object instance this proxy is part of
* @param string $propertyName The name of the proxied property in it's parent
* @param mixed $fieldValue The raw field value.
* @param ?DataMapper $dataMapper
* @param DataMapper|null $dataMapper
*/
public function __construct($parentObject, $propertyName, $fieldValue, ?DataMapper $dataMapper = null)
{
......
......@@ -84,7 +84,7 @@ class LazyObjectStorage extends ObjectStorage implements LoadingStrategyInterfac
* @param TEntity $parentObject The object instance this proxy is part of
* @param string $propertyName The name of the proxied property in it's parent
* @param mixed $fieldValue The raw field value.
* @param ?DataMapper $dataMapper
* @param DataMapper|null $dataMapper
*/
public function __construct($parentObject, $propertyName, $fieldValue, ?DataMapper $dataMapper = null)
{
......
......@@ -141,7 +141,7 @@ class Query implements QueryInterface, ForwardCompatibleQueryInterface
}
/**
* @param ?QueryInterface $parentQuery
* @param QueryInterface|null $parentQuery
* @internal
*/
public function setParentQuery(?QueryInterface $parentQuery): void
......
......@@ -251,7 +251,7 @@ class Blog extends AbstractEntity
}
/**
* @param ?string $subtitle
* @param string|null $subtitle
*/
public function setSubtitle($subtitle): void
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment