You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php
declare(strict_types=1);
namespace Acme;
use stdClass;
class Example
{
public function magicMethod(): void
{
$class = new class() extends stdClass {
};
$class->something = 0;
}
}
gets an error: "PhpBasic convention 1.3: Only one class/interface can be declared per file"
It's mostly used in tests
The text was updated successfully, but these errors were encountered:
can't use anonymous classes:
gets an error: "PhpBasic convention 1.3: Only one class/interface can be declared per file"
It's mostly used in tests
The text was updated successfully, but these errors were encountered: