Skip to content

PHP Fatal error: A function with return type must return a value #5

@asgraf

Description

@asgraf

This is a (multiple allowed):

  • bug

  • enhancement

  • question

  • CakePHP Version: 4.3.5

What you did

I'm in progress of migrating CakePHP 3.x app into CakePHP 4.x
I have updated composer.json with:

"holt59/cakephp4-bootstrap-helpers": "^3.0",

What happened

PHP error message:

Fatal error: A function with return type must return a value (did you mean "return null;" instead of "return;"?) in ./vendor/holt59/cakephp4-bootstrap-helpers/src/View/Helper/FlashHelper.php on line 37

What you expected to happen

No errors :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions