PHP lint problems
(20 errors, 0 warnings)
This section shows php lint problems in the code detected by php -l [More info]
- local/codechecker/PHPCompatibility/Tests/sniff-examples/call_time_pass_by_reference.php
- (#15) PHP Fatal error: Call-time pass-by-reference has been removed in /local/codechecker/PHPCompatibility/Tests/sniff-examples/call_time_pass_by_reference.php on line 15
- local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/class-extends.php
- (#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting identifier (T_STRING) or namespace (T_NAMESPACE) or \\ (T_NS_SEPARATOR) in /local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/class-extends.php on line 3
- local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/class-use-trait-alias-method.php
- (#2) PHP Parse error: syntax error, unexpected '}', expecting ';' in /local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/class-use-trait-alias-method.php on line 2
- local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/class-use-trait.php
- (#2) PHP Parse error: syntax error, unexpected '}', expecting ',' or ';' or '{' in /local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/class-use-trait.php on line 2
- local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/class.php
- (#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting identifier (T_STRING) in /local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/class.php on line 3
- local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/const.php
- (#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting identifier (T_STRING) in /local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/const.php on line 3
- local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/function-declare.php
- (#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting '(' in /local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/function-declare.php on line 3
- local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/namespace.php
- (#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting identifier (T_STRING) or \\ (T_NS_SEPARATOR) or '{' in /local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/namespace.php on line 3
- local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/trait.php
- (#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting identifier (T_STRING) in /local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/trait.php on line 3
- local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/use-as.php
- (#3) PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting identifier (T_STRING) in /local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/use-as.php on line 3
- local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/use.php
- (#2) PHP Warning: The use statement with non-compound name 'Baz' has no effect in /local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/use.php on line 2 PHP Parse error: syntax error, unexpected 'abstract' (T_ABSTRACT), expecting identifier (T_STRING) or function (T_FUNCTION) or const (T_CONST) or \\ (T_NS_SEPARATOR) in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden-names/use.php on line 3
- local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden_break_continue_variable_argument.php
- (#32) PHP Fatal error: 'break' operator with non-constant operand is no longer supported in /local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden_break_continue_variable_argument.php on line 32
- local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden_names_function_invocation.php
- (#6) PHP Parse error: syntax error, unexpected '(', expecting class (T_CLASS) in /local/codechecker/PHPCompatibility/Tests/sniff-examples/forbidden_names_function_invocation.php on line 6
- local/codechecker/PHPCompatibility/Tests/sniff-examples/new_keywords.php
- (#20) PHP Fatal error: Namespace declaration statement has to be the very first statement in the script in /local/codechecker/PHPCompatibility/Tests/sniff-examples/new_keywords.php on line 20
- local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php
- (#24) PHP Warning: The magic method __get() must have public visibility and cannot be static in /local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 24 PHP Warning: The magic method __set() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 25 PHP Warning: The magic method __isset() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 26 PHP Warning: The magic method __unset() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 27 PHP Warning: The magic method __call() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 28 PHP Warning: The magic method __get() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 33 PHP Warning: The magic method __set() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 34 PHP Warning: The magic method __isset() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 35 PHP Warning: The magic method __unset() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 36 PHP Warning: The magic method __call() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 37 PHP Warning: The magic method __get() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 42 PHP Warning: The magic method __set() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 43 PHP Warning: The magic method __isset() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 44 PHP Warning: The magic method __unset() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 45 PHP Warning: The magic method __call() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 46 PHP Warning: The magic method __get() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 51 PHP Warning: The magic method __get() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 56 PHP Warning: The magic method __get() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 61 PHP Warning: The magic method __get() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 66 PHP Warning: The magic method __get() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 71 PHP Warning: The magic method __get() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 76 PHP Warning: The magic method __get() must have public visibility and cannot be static in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 84 PHP Fatal error: Access type for interface method TooPrivateInterface::getId() must be omitted in /var/lib/jenkins/git_repositories/prechecker/local/codechecker/PHPCompatibility/Tests/sniff-examples/nonstatic_magic_methods.php on line 108
- local/codechecker/moodle/tests/fixtures/moodle_comenting_inlinecomment.php
- (#35) PHP Fatal error: Cannot redeclare commented_class::afunction() in /local/codechecker/moodle/tests/fixtures/moodle_comenting_inlinecomment.php on line 35
- local/codechecker/moodle/tests/fixtures/moodle_php_forbiddenfunctions.php
- (#17) PHP Parse error: syntax error, unexpected 'b' (T_STRING), expecting ',' or ';' in /local/codechecker/moodle/tests/fixtures/moodle_php_forbiddenfunctions.php on line 17
- local/codechecker/moodle/tests/fixtures/moodle_php_forbiddennamesasinvokedfunctions.php
- (#19) PHP Parse error: syntax error, unexpected '(', expecting class (T_CLASS) in /local/codechecker/moodle/tests/fixtures/moodle_php_forbiddennamesasinvokedfunctions.php on line 19
- local/codechecker/moodle/tests/fixtures/moodle_php_forbiddentokens.php
- (#6) PHP Fatal error: 'goto' to undefined label 'label' in /local/codechecker/moodle/tests/fixtures/moodle_php_forbiddentokens.php on line 6
- local/codechecker/moodle/tests/fixtures/phpcompatibility_php_forbiddencalltimepassbyreference.php
- (#6) PHP Fatal error: Call-time pass-by-reference has been removed in /local/codechecker/moodle/tests/fixtures/phpcompatibility_php_forbiddencalltimepassbyreference.php on line 6