ACIL FM
Dark
Refresh
Current DIR:
/opt/cpanel/ea-wappspector/vendor/slevomat/coding-standard/doc
/
opt
cpanel
ea-wappspector
vendor
slevomat
coding-standard
doc
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
arrays.md
1.58 MB
chmod
View
DL
Edit
Rename
Delete
attributes.md
1.75 MB
chmod
View
DL
Edit
Rename
Delete
classes.md
13.82 MB
chmod
View
DL
Edit
Rename
Delete
commenting.md
5.72 MB
chmod
View
DL
Edit
Rename
Delete
complexity.md
288 B
chmod
View
DL
Edit
Rename
Delete
control-structures.md
9.32 MB
chmod
View
DL
Edit
Rename
Delete
exceptions.md
1.14 MB
chmod
View
DL
Edit
Rename
Delete
files.md
2.54 MB
chmod
View
DL
Edit
Rename
Delete
functions.md
5.21 MB
chmod
View
DL
Edit
Rename
Delete
namespaces.md
7.76 MB
chmod
View
DL
Edit
Rename
Delete
numbers.md
625 B
chmod
View
DL
Edit
Rename
Delete
operators.md
1.11 MB
chmod
View
DL
Edit
Rename
Delete
php.md
3.09 MB
chmod
View
DL
Edit
Rename
Delete
strings.md
392 B
chmod
View
DL
Edit
Rename
Delete
type-hints.md
10.71 MB
chmod
View
DL
Edit
Rename
Delete
variables.md
749 B
chmod
View
DL
Edit
Rename
Delete
whitespaces.md
623 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/cpanel/ea-wappspector/vendor/slevomat/coding-standard/doc/exceptions.md
## Exceptions #### SlevomatCodingStandard.Exceptions.DeadCatch This sniff finds unreachable catch blocks: ```php try { doStuff(); } catch (\Throwable $e) { log($e); } catch (\InvalidArgumentException $e) { // unreachable! } ``` #### SlevomatCodingStandard.Exceptions.DisallowNonCapturingCatch This sniff forbids use of non-capturing catch introduced in PHP 8.0 [PHP RFC: non-capturing catches](https://wiki.php.net/rfc/non-capturing_catches). #### SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly 🔧🚧 In PHP 7.0, a [`Throwable` interface was added](https://wiki.php.net/rfc/throwable-interface) that allows catching and handling errors in more cases than `Exception` previously allowed. So, if the catch statement contained `Exception` on PHP 5.x, it means it should probably be rewritten to reference `Throwable` on PHP 7.x. This sniff enforces that. #### SlevomatCodingStandard.Exceptions.RequireNonCapturingCatch 🔧 Sniff provides the following settings: * `enable`: either to enable or not this sniff. By default, it is enabled for PHP versions 8.0 or higher. It requires non-capturing catch when the variable with exception is not used.
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply