diff --git a/Classes/Utility/DebuggerUtility.php b/Classes/Utility/DebuggerUtility.php index d863acd..d930bc9 100644 --- a/Classes/Utility/DebuggerUtility.php +++ b/Classes/Utility/DebuggerUtility.php @@ -643,11 +643,19 @@ class DebuggerUtility protected static function exposeMethod(ReflectionMethod $method): bool { $methodName = $method->getName(); + $className = $method->getDeclaringClass()->getName(); $allowedPrefixes = ['get', 'has', 'is']; + $notAllowedCombinations = [ + 'TYPO3\CMS\Core\Resource\FileReference::getContents', + 'TYPO3\CMS\Core\Resource\File::getContents', + ]; $allowedByName = false; foreach ($allowedPrefixes as $allowedPrefix) { - if (StringUtility::beginsWith($methodName, $allowedPrefix)) { + if ( + StringUtility::beginsWith($methodName, $allowedPrefix) + && in_array($className . '::' . $methodName, $notAllowedCombinations) === false + ) { $allowedByName = true; break; }