[FOLLOWUP][BUGFIX] FAL: Do not paste a folder into itself 79/36579/2
authorWouter Wolters <typo3@wouterwolters.nl>
Sun, 1 Feb 2015 12:31:10 +0000 (13:31 +0100)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Sun, 1 Feb 2015 14:19:16 +0000 (15:19 +0100)
Add missing @throws annotation for the added function.

Also the correct exception is thrown in ResourceStorage
if it occurs anyway.

Resolves: #51670
Releases: master, 6.2
Change-Id: I52551012c88326cc3fd58d2e72e53f58fedb334b
Reviewed-on: http://review.typo3.org/36579
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/core/Classes/Resource/ResourceStorage.php

index 569e246..86b9ca9 100644 (file)
@@ -2114,6 +2114,7 @@ class ResourceStorage implements ResourceStorageInterface {
         * @param Folder $folder
         * @param ResourceInterface $resource
         * @return bool
+        * @throws \InvalidArgumentException
         */
        public function isWithinFolder(Folder $folder, ResourceInterface $resource) {
                if ($folder->getStorage() !== $this) {