Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
languages
/
wp-content
/
themes
/
storefront
/
vendor
/
squizlabs
/
php_codesniffer
/
tests
/
Core
/
Tokenizer
:
NullsafeObjectOperatorTest.inc
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /* * Null safe operator. */ /* testObjectOperator */ echo $obj->foo; /* testNullsafeObjectOperator */ echo $obj?->foo; /* testNullsafeObjectOperatorWriteContext */ // Intentional parse error, but not the concern of the tokenizer. $foo?->bar->baz = 'baz'; /* testTernaryThen */ echo $obj ? $obj->prop : $other->prop; /* testParseErrorWhitespaceNotAllowed */ echo $obj ? -> foo; /* testParseErrorCommentNotAllowed */ echo $obj ?/*comment*/-> foo; /* testLiveCoding */ // Intentional parse error. This has to be the last test in the file. echo $obj?