Breaking: #101281 - Introduce type declarations in ResourceInterface¶
See forge#101281
Description¶
The following methods of interface
\TYPO3\
have been given return
type declarations:
public function getIdentifier(): string;
public function getName(): string;
public function getStorage(): ResourceStorage;
public function getHashedIdentifier(): string;
public function getParentFolder(): FolderInterface;
Copied!
Impact¶
This affects many classes due to the following implementation rules:
\TYPO3\
, because it implementsCMS\ Core\ Resource\ Folder \TYPO3\
which extendsCMS\ Core\ Resource\ Folder Interface \TYPO3\
CMS\ Core\ Resource\ Resource Interface \TYPO3\
, andCMS\ Core\ Resource\ File Reference \TYPO3\
because both implementCMS\ Core\ Resource\ Abstract File \TYPO3\
which extendsCMS\ Core\ Resource\ File Interface \TYPO3\
CMS\ Core\ Resource\ Resource Interface \TYPO3\
andCMS\ Core\ Resource\ File \TYPO3\
because both extendCMS\ Core\ Resource\ Processed File \TYPO3\
CMS\ Core\ Resource\ Abstract File
In consequence, the following methods are affected:
\TYPO3\
CMS\ Core\ Resource\ Folder:: get Identifier () \TYPO3\
CMS\ Core\ Resource\ Folder:: get Name () \TYPO3\
CMS\ Core\ Resource\ Folder:: get Storage () \TYPO3\
CMS\ Core\ Resource\ Folder:: get Hashed Identifier () \TYPO3\
CMS\ Core\ Resource\ Folder:: get Parent Folder () \TYPO3\
CMS\ Core\ Resource\ File Reference:: get Identifier () \TYPO3\
CMS\ Core\ Resource\ File Reference:: get Name () \TYPO3\
CMS\ Core\ Resource\ File Reference:: get Storage () \TYPO3\
CMS\ Core\ Resource\ File Reference:: get Hashed Identifier () \TYPO3\
CMS\ Core\ Resource\ File Reference:: get Parent Folder () \TYPO3\
CMS\ Core\ Resource\ Abstract File:: get Identifier () \TYPO3\
CMS\ Core\ Resource\ Abstract File:: get Name () \TYPO3\
CMS\ Core\ Resource\ Abstract File:: get Storage () \TYPO3\
CMS\ Core\ Resource\ Abstract File:: get Hashed Identifier () \TYPO3\
CMS\ Core\ Resource\ Abstract File:: get Parent Folder () \TYPO3\
CMS\ Core\ Resource\ File:: get Identifier () \TYPO3\
CMS\ Core\ Resource\ File:: get Name () \TYPO3\
CMS\ Core\ Resource\ File:: get Storage () \TYPO3\
CMS\ Core\ Resource\ File:: get Hashed Identifier () \TYPO3\
CMS\ Core\ Resource\ File:: get Parent Folder () \TYPO3\
CMS\ Core\ Resource\ Processed File:: get Identifier () \TYPO3\
CMS\ Core\ Resource\ Processed File:: get Name () \TYPO3\
CMS\ Core\ Resource\ Processed File:: get Storage () \TYPO3\
CMS\ Core\ Resource\ Processed File:: get Hashed Identifier () \TYPO3\
CMS\ Core\ Resource\ Processed File:: get Parent Folder ()
Affected installations¶
Affected installations are those which either implement the Resource
directly (very unlikely) or those that extend any of mentioned implementations
(Core classes).
The usage (the API) of those implementation itself has not changed!
Migration¶
Use the same return type declarations as Resource
does.