mirror of
https://github.com/php/pie.git
synced 2026-03-23 23:12:17 +01:00
537: fix deprecated output when using Box
- PIE issue: https://github.com/php/pie/issues/537 - Upstream box issue: https://github.com/box-project/box/issues/1577 Can probably be reverted once the Box issue is fixed & released :)
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
"alias": "pie.phar",
|
"alias": "pie.phar",
|
||||||
"output": "pie.phar",
|
"output": "pie.phar",
|
||||||
"git": "pie_version",
|
"git": "pie_version",
|
||||||
|
"stub": "phar-stub.php",
|
||||||
"force-autodiscovery": true,
|
"force-autodiscovery": true,
|
||||||
"directories": [
|
"directories": [
|
||||||
"resources"
|
"resources"
|
||||||
|
|||||||
19
phar-stub.php
Normal file
19
phar-stub.php
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/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
|
||||||
|
error_reporting(error_reporting() & ~E_DEPRECATED);
|
||||||
|
|
||||||
|
Phar::mapPhar('pie.phar');
|
||||||
|
|
||||||
|
require 'phar://pie.phar/.box/bin/check-requirements.php';
|
||||||
|
|
||||||
|
$_SERVER['SCRIPT_FILENAME'] = 'phar://pie.phar/bin/pie';
|
||||||
|
require 'phar://pie.phar/bin/pie';
|
||||||
|
|
||||||
|
// phpcs:ignore Generic.Files.InlineHTML.Found
|
||||||
|
__HALT_COMPILER(); ?>
|
||||||
Reference in New Issue
Block a user