We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f845c2 + 10eb846 commit 4fa1169Copy full SHA for 4fa1169
2 files changed
box.json.dist
@@ -2,6 +2,7 @@
2
"alias": "pie.phar",
3
"output": "pie.phar",
4
"git": "pie_version",
5
+ "stub": "phar-stub.php",
6
"force-autodiscovery": true,
7
"directories": [
8
"resources"
phar-stub.php
@@ -0,0 +1,19 @@
1
+#!/usr/bin/env php
+<?php
+
+declare(strict_types=1);
+// echo "James says hello :)\n";
+// Workaround for https://github.com/php/pie/issues/537 and https://github.com/box-project/box/issues/1577
9
+error_reporting(error_reporting() & ~E_DEPRECATED);
10
11
+Phar::mapPhar('pie.phar');
12
13
+require 'phar://pie.phar/.box/bin/check-requirements.php';
14
15
+$_SERVER['SCRIPT_FILENAME'] = 'phar://pie.phar/bin/pie';
16
+require 'phar://pie.phar/bin/pie';
17
18
+// phpcs:ignore Generic.Files.InlineHTML.Found
19
+__HALT_COMPILER(); ?>
0 commit comments