phpshell icon indicating copy to clipboard operation
phpshell copied to clipboard

live preview: Cannot declare `strict_types`

Open Bilge opened this issue 1 year ago • 3 comments

<?php
declare(strict_types=1);

Fatal error: strict_types declaration must be the very first statement in the script in php-wasm run script on line 2

Bilge avatar Aug 01 '24 12:08 Bilge

I can't seem to reproduce this: https://3v4l.org/VpFbX

jrfnl avatar Aug 12 '24 07:08 jrfnl

Enable live preview.

Bilge avatar Aug 12 '24 07:08 Bilge

Ah! That info was missing in the report ;-) Still, seeing it in one browser (Brave), not in the other (Palemoon)...

jrfnl avatar Aug 12 '24 07:08 jrfnl

this is known issue that should be fixed in php-wasm - or else I need to revert to my own wasm implementation which is not preferred

suspending for now

SjonHortensius avatar Feb 21 '25 13:02 SjonHortensius