Minor fixes

This commit is contained in:
Matias Griese 2021-12-16 13:55:36 +02:00
parent 89acc59ac3
commit 0f85b831b5
6 changed files with 7 additions and 8 deletions

View File

@ -641,8 +641,7 @@ class PageObject extends FlexPageObject
return $this->root ?: parent::exists();
}
// TODO: Disabled because this slows down exception handling on missing Twig template files
/* *
/**
* @return array
* /
public function __debugInfo(): array
@ -654,7 +653,6 @@ class PageObject extends FlexPageObject
'_content:private' => $this->getRawContent()
];
}
*/
/**
* @param array $elements

View File

@ -11,6 +11,7 @@ namespace Grav\Common\Page\Interfaces;
use Grav\Common\Data\Blueprint;
use Grav\Common\Media\Interfaces\MediaCollectionInterface;
use Grav\Common\Page\Header;
/**
* Methods currently implemented in Flex Page emulation layer.
@ -21,7 +22,7 @@ interface PageContentInterface
* Gets and Sets the header based on the YAML configuration at the top of the .md file
*
* @param object|array|null $var a YAML object representing the configuration for the file
* @return object the current YAML configuration
* @return \stdClass|Header The current YAML configuration
*/
public function header($var = null);

View File

@ -388,7 +388,7 @@ class Page implements PageInterface
* Gets and Sets the header based on the YAML configuration at the top of the .md file
*
* @param object|array|null $var a YAML object representing the configuration for the file
* @return object the current YAML configuration
* @return \stdClass the current YAML configuration
*/
public function header($var = null)
{

View File

@ -100,6 +100,7 @@ trait PageContentTrait
/**
* @inheritdoc
* @return Header
*/
public function header($var = null)
{

View File

@ -286,8 +286,7 @@ trait FlexMediaTrait
$this->clearMediaCache();
}
// TODO: Disabled because this slows down exception handling on missing Twig template files
/* *
/**
* @return array
* /
#[\ReturnTypeWillChange]
@ -297,7 +296,6 @@ trait FlexMediaTrait
'uploads:private' => $this->getUpdatedMedia()
];
}
*/
/**
* @param array $files

View File

@ -38,6 +38,7 @@ parameters:
- Grav\Common\GPM\Common\Package
- Grav\Common\GPM\Local\Package
- Grav\Common\GPM\Remote\Package
- Grav\Common\Page\Header
- Grav\Common\Session
- Gantry\Component\Config\Config
dynamicConstantNames: