mirror of
https://github.com/php/doc-en.git
synced 2026-03-23 23:32:18 +01:00
[PHP 8.3] It is now possible to lint multiple files. (#2917)
Co-authored-by: Jim Winstead <jimw@trainedmonkey.com> Co-authored-by: Gina Peter Banyard <girgias@php.net>
This commit is contained in:
committed by
GitHub
parent
f012b27618
commit
725ceadea9
@@ -534,19 +534,28 @@ string(15) "doesntmakesense"
|
||||
<entry>--syntax-check</entry>
|
||||
<entry>
|
||||
<para>
|
||||
Provides a convenient way to perform only a syntax check
|
||||
on the given PHP code. On success, the text
|
||||
Syntax check but do not execute the given PHP code.
|
||||
The input from standard input will be processed if no filenames are specified,
|
||||
otherwise each filename will be checked.
|
||||
On success, the text
|
||||
<literal>No syntax errors detected in <filename></literal> is
|
||||
written to standard output and the shell return code is
|
||||
<literal>0</literal>. On failure, the text <literal>Errors parsing
|
||||
<filename></literal> in addition to the internal parser error
|
||||
message is written to standard output and the shell return code is set
|
||||
to <literal>-1</literal>.
|
||||
written to standard output.
|
||||
On failure, the text <literal>Errors parsing <filename></literal>
|
||||
is written to standard output in addition to the internal parser error.
|
||||
If any failures are found in the specified files (or standard input),
|
||||
the shell return code is set to <literal>-1</literal>, otherwise the
|
||||
shell return code is set to <literal>0</literal>.
|
||||
</para>
|
||||
<para>
|
||||
This option won't find fatal errors (like undefined functions). Use
|
||||
the <option>-f</option> to test for fatal errors too.
|
||||
This option won't find fatal errors (like undefined functions) that
|
||||
require executing the code.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
Prior to PHP 8.3.0, it was only possible to specify one filename to
|
||||
be checked.
|
||||
</para>
|
||||
</note>
|
||||
<note>
|
||||
<para>
|
||||
This option does not work together with the <option>-r</option>
|
||||
|
||||
Reference in New Issue
Block a user