InaccessibleClassConstant

March 20, 2020 ยท View on GitHub

Emitted when a public/private class constant is not accessible from the calling context

<?php

class A {
    protected const FOO = 'FOO';
}
echo A::FOO;