Skip to content

Commit

Permalink
[TASK] Fix phpstan checkFunctionArgumentTypes errors in ext:core Link…
Browse files Browse the repository at this point in the history
…Handling

This patch fixes incompatible type usage in function arguments
and is preparatory work for introducing native type hints and
strict mode in all core files.

Releases: master, 10.4
Resolves: #92256
Change-Id: Iffa47071ef75ff1453d76864acef853240da81df
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/65825
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
  • Loading branch information
alexanderschnitzler authored and ervaude committed Sep 23, 2020
1 parent 240f7c0 commit 26b5fba
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -71,7 +71,7 @@ public function resolve(string $linkParameter): array
// Resolve FAL-api "file:UID-of-sys_file-record" and "file:combined-identifier"
if (stripos($linkParameter, 'file:') === 0) {
$result = $this->getFileOrFolderObjectFromMixedIdentifier(substr($linkParameter, 5));
} elseif (GeneralUtility::validEmail(parse_url($linkParameter, PHP_URL_PATH))) {
} elseif (GeneralUtility::validEmail((string)parse_url($linkParameter, PHP_URL_PATH))) {
$result['type'] = LinkService::TYPE_EMAIL;
$result['email'] = $linkParameter;
} elseif (strpos($linkParameter, 'tel:') === 0) {
Expand Down

0 comments on commit 26b5fba

Please sign in to comment.