-
Notifications
You must be signed in to change notification settings - Fork 639
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[!!!][TASK] Introduce type declarations in AbstractDriver
Releases: main Resolves: #101471 Change-Id: I0d633ea2d5dc6daed5e3cd97020d03a2a0749969 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80201 Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Stefan B�rk <stefan@buerk.tech> Reviewed-by: Stefan B�rk <stefan@buerk.tech> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: core-ci <typo3@b13.com> Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
- Loading branch information
1 parent
9a38896
commit 6a6b59f
Showing
4 changed files
with
90 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
...on/Changelog/13.0/Breaking-101471-IntroduceTypeDeclarationsInAbstractDriver.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.. include:: /Includes.rst.txt | ||
|
||
.. _breaking-101471-1690531810: | ||
|
||
================================================================= | ||
Breaking: #101471 - Introduce type declarations in AbstractDriver | ||
================================================================= | ||
|
||
See :issue:`101471` | ||
|
||
Description | ||
=========== | ||
|
||
Return and param type declarations have been introduced for all methods and method | ||
stubs of of :php:`\TYPO3\CMS\Core\Resource\Driver\AbstractDriver` and | ||
:php:`\TYPO3\CMS\Core\Resource\Driver\AbstractHierarchicalFilesystemDriver` | ||
|
||
|
||
Impact | ||
====== | ||
|
||
In consequence, all classes, extending any of those abstract classes and overriding | ||
any of those affected methods need to reflect those changes and add the same return | ||
and param type declarations. | ||
|
||
Affected methods are: | ||
|
||
- :php:`\TYPO3\CMS\Core\Resource\Driver\AbstractDriver::isValidFilename()` | ||
- :php:`\TYPO3\CMS\Core\Resource\Driver\AbstractDriver::getTemporaryPathForFile()` | ||
- :php:`\TYPO3\CMS\Core\Resource\Driver\AbstractDriver::canonicalizeAndCheckFilePath()` | ||
- :php:`\TYPO3\CMS\Core\Resource\Driver\AbstractDriver::canonicalizeAndCheckFileIdentifier()` | ||
- :php:`\TYPO3\CMS\Core\Resource\Driver\AbstractDriver::canonicalizeAndCheckFolderIdentifier()` | ||
|
||
- :php:`\TYPO3\CMS\Core\Resource\Driver\AbstractHierarchicalFilesystemDriver::isPathValid()` | ||
- :php:`\TYPO3\CMS\Core\Resource\Driver\AbstractHierarchicalFilesystemDriver::canonicalizeAndCheckFilePath()` | ||
- :php:`\TYPO3\CMS\Core\Resource\Driver\AbstractHierarchicalFilesystemDriver::canonicalizeAndCheckFileIdentifier()` | ||
- :php:`\TYPO3\CMS\Core\Resource\Driver\AbstractHierarchicalFilesystemDriver::canonicalizeAndCheckFolderIdentifier()` | ||
|
||
|
||
Affected installations | ||
====================== | ||
|
||
Installations that extend any of those abstract classes might be affected. | ||
|
||
|
||
Migration | ||
========= | ||
|
||
Add the same param and return type declarations the interface does. | ||
|
||
|
||
.. index:: FAL, PHP-API, NotScanned, ext:core |