File "ConstantVisibilityUnitTest.inc"
Full Path: /home/warrior1/public_html/wp-content/themes/storefront/vendor/squizlabs/php_codesniffer/src/Standards/PSR12/Tests/Properties/ConstantVisibilityUnitTest.inc
File size: 360 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
class Foo {
public const BAR = 'bar';
const BAZ = 'baz';
}
const APPLICATION_ENV = 'development';
// Issue 3526, PHP 8.1 final constants.
class SampleEnum
{
final const FOO = 'SAMPLE';
public final const BAR = 'SAMPLE';
final private const BAZ = 'SAMPLE';
}
enum SomeEnum {
public const BAR = 'bar';
const BAZ = 'baz';
}