Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

`yii\base\ErrorException` on PHP 7.4 #7

Open
cedx opened this issue Nov 2, 2019 · 1 comment
Assignees
Labels
bug

Comments

@cedx
Copy link
Owner

@cedx cedx commented Nov 2, 2019

The yii\base\ErrorException exception is raised when using the ViewRenderer::render() method on PHP 7.4rc5:

yii\mustache\ViewRenderer
 ✘ ->render()
   │
   │ yii\base\ErrorException: Trying to access array offset on value of type null
   │
   │ C:\Projets\php\yii2-mustache\vendor\mustache\mustache\src\Mustache\Parser.php:278
   │ C:\Projets\php\yii2-mustache\vendor\mustache\mustache\src\Mustache\Parser.php:103
   │ C:\Projets\php\yii2-mustache\vendor\mustache\mustache\src\Mustache\Parser.php:43
   │ C:\Projets\php\yii2-mustache\vendor\mustache\mustache\src\Mustache\Engine.php:783
   │ C:\Projets\php\yii2-mustache\vendor\mustache\mustache\src\Mustache\Engine.php:808
   │ C:\Projets\php\yii2-mustache\vendor\mustache\mustache\src\Mustache\Engine.php:738
   │ C:\Projets\php\yii2-mustache\vendor\mustache\mustache\src\Mustache\Engine.php:657
   │ C:\Projets\php\yii2-mustache\vendor\mustache\mustache\src\Mustache\Engine.php:236
   │ C:\Projets\php\yii2-mustache\lib\ViewRenderer.php:99
   │ C:\Projets\php\yii2-mustache\test\ViewRendererTest.php:28
   │ C:\Projets\php\yii2-mustache\vendor\cedx\phpunit-expect\lib\functions.php:30
   │ C:\Projets\php\yii2-mustache\test\ViewRendererTest.php:33
@cedx cedx self-assigned this Nov 2, 2019
@cedx cedx added the bug label Nov 2, 2019
@cedx

This comment has been minimized.

Copy link
Owner Author

@cedx cedx commented Nov 2, 2019

This issue can't be resolved by this project. The bug is in the mustache project:
bobthecow/mustache.php#348

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.