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

Commit 23a3560

Browse files
committed
Function must stay there for readability
1 parent 6e56d50 commit 23a3560

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/files/included_file_does_not_exist_but_uses_a_function.php

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

33
declare(strict_types=1);
44

5+
// phpcs:disable
56
function getFileThatDoesNotExist(): string
67
{
78
return 'a_file_that_does_not_exist.txt';
89
}
910

11+
// phpcs:enable
1012
include __DIR__ . '/' . getFileThatDoesNotExist();
1113
include_once __DIR__ . '/' . getFileThatDoesNotExist();
1214
require __DIR__ . '/' . getFileThatDoesNotExist();

0 commit comments

Comments
 (0)