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

Commit ccf0348

Browse files
committed
Test that it cannot read functions
1 parent 5b661ac commit ccf0348

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"require": {
1111
"php": ">=7.4",
12-
"phpstan/phpstan": "^1.11",
12+
"phpstan/phpstan": "^1.11"
1313
},
1414
"license": "Apache-2.0",
1515
"autoload": {
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
function getFileThatDoesNotExist(): string
6+
{
7+
return 'a_file_that_does_not_exist.txt';
8+
}
9+
10+
include __DIR__ . '/' . getFileThatDoesNotExist();
11+
include_once __DIR__ . '/' . getFileThatDoesNotExist();
12+
require __DIR__ . '/' . getFileThatDoesNotExist();
13+
require_once __DIR__ . '/' . getFileThatDoesNotExist();

0 commit comments

Comments
 (0)