Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit 1ac4e65

Browse files
committed
Ignore side effect errors
1 parent 9dfcefe commit 1ac4e65

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/files/file_does_not_exist_but_const_is_defined_in_the_same_file.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
declare(strict_types=1);
44

5+
// phpcs:disable
56
define('FILE_DOES_NOT_EXIST_INLINE', 'a_file_that_does_not_exist.txt');
67

8+
// phpcs:enable
79
include __DIR__ . '/' . FILE_DOES_NOT_EXIST_INLINE;
810
include_once __DIR__ . '/' . FILE_DOES_NOT_EXIST_INLINE;
911
require __DIR__ . '/' . FILE_DOES_NOT_EXIST_INLINE;

0 commit comments

Comments
 (0)