Skip to content

Commit

Permalink
[FEAT] Make the package compatible with PHP 7.3 and Neos 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
beromir committed Oct 7, 2021
1 parent fe58e8b commit 9d52257
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 4 additions & 5 deletions Classes/FusionObjects/Ray.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ public function evaluate(): void
}

/**
* @param mixed $debugValue
* @param $debugValue
* @param string $debugAction
*
* @return void
*/
private function debug(mixed $debugValue = null, string $debugAction = ''): void
private function debug($debugValue = null, string $debugAction = ''): void
{
ray(function () use ($debugValue, $debugAction) {

Expand Down Expand Up @@ -81,12 +81,11 @@ private function debug(mixed $debugValue = null, string $debugAction = ''): void
}

/**
* @param object $debugValue
* @param $debugValue
* @param string $debugAction
*
* @return mixed
*/
private function getNodeData(object $debugValue, string $debugAction): mixed
private function getNodeData($debugValue, string $debugAction)
{
if (get_class($debugValue) !== 'Neos\ContentRepository\Domain\Model\Node') {
return null;
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
"debugging"
],
"require": {
"neos/neos": "^7.0",
"neos/neos": "^5.3|^7.0",
"neos/flow": "*",
"spatie/ray": "^1.30"
"spatie/ray": "^1.30",
"php": "^7.3|^8.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 9d52257

Please sign in to comment.