Skip to content

Commit

Permalink
Use absolute paths for require, this is now reported by PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
spaze committed Sep 6, 2024
1 parent 6dccce3 commit 4b1f68a
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion site/public/admin/app.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
declare(strict_types = 1);

require '../www.michalspacek.cz/app.php';
require __DIR__ . '/../www.michalspacek.cz/app.php';
2 changes: 1 addition & 1 deletion site/public/api/app.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
declare(strict_types = 1);

require '../www.michalspacek.cz/app.php';
require __DIR__ . '/../www.michalspacek.cz/app.php';
2 changes: 1 addition & 1 deletion site/public/heartbleed/app.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
declare(strict_types = 1);

require '../www.michalspacek.cz/app.php';
require __DIR__ . '/../www.michalspacek.cz/app.php';
2 changes: 1 addition & 1 deletion site/public/pulse/app.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
declare(strict_types = 1);

require '../www.michalspacek.cz/app.php';
require __DIR__ . '/../www.michalspacek.cz/app.php';
2 changes: 1 addition & 1 deletion site/public/upcwifikeys.com/app.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
declare(strict_types = 1);

require '../www.michalspacek.cz/app.php';
require __DIR__ . '/../www.michalspacek.cz/app.php';
2 changes: 1 addition & 1 deletion site/public/www.michalspacek.com/app.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php
declare(strict_types = 1);

require '../www.michalspacek.cz/app.php';
require __DIR__ . '/../www.michalspacek.cz/app.php';
4 changes: 2 additions & 2 deletions site/public/www.michalspacek.cz/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
use MichalSpacekCz\Application\Bootstrap;
use MichalSpacekCz\Application\WebApplication;

if (file_exists('./maintenance.php')) {
require 'maintenance.php';
if (file_exists(__DIR__ . '/maintenance.php')) {
require __DIR__ . '/maintenance.php';
}

require __DIR__ . '/../../vendor/autoload.php';
Expand Down

0 comments on commit 4b1f68a

Please sign in to comment.