Skip to content

Commit

Permalink
Merge pull request #5012 from webandco/task/9.0-fix-fusionview-assign…
Browse files Browse the repository at this point in the history
…-strict-types

TASK: Adjust types of Neos' `FusionView::assign`
  • Loading branch information
mhsdesign committed Apr 25, 2024
2 parents d7b617f + 50b3bc6 commit 7593180
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Neos.Neos/Classes/View/FusionView.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ protected function getFusionRuntime(Node $currentSiteNode)
* @param string $key
* @param mixed $value
*/
public function assign($key, $value): AbstractView
public function assign(string $key, mixed $value): self
{
if ($key === 'request') {
// the request cannot be used as "normal" fusion variable and must be treated as FusionGlobal
Expand Down

0 comments on commit 7593180

Please sign in to comment.