Skip to content

Commit

Permalink
Merge pull request #99 from lexidor/hhvm-upgrade
Browse files Browse the repository at this point in the history
Compatibility with newer hhvm versions
  • Loading branch information
kazuhikoarase authored May 13, 2021
2 parents c213466 + a401f96 commit 139ef3f
Show file tree
Hide file tree
Showing 8 changed files with 115 additions and 111 deletions.
3 changes: 2 additions & 1 deletion hack/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
vendor/**
**/*hhast.parser-cache
**/*hhast.parser-cache
.var/
2 changes: 2 additions & 0 deletions hack/.hhconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ignored_paths = [ "vendor/.+/tests/.+", "vendor/.+/bin/.+"]
hackfmt.line_width = 80
hackfmt.indent_width = 4
allowed_decl_fixme_codes = 2053, 4047
allowed_fixme_codes_strict = 2049, 2053, 4027, 4047, 4104, 4107, 4110, 4128, 4188, 4323
3 changes: 1 addition & 2 deletions hack/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"hhvm": "^4.32"
},
"require-dev": {
"hhvm/hhvm-autoload": "^2.0",
"hhvm/hsl": "^4.36",
"hhvm/hhvm-autoload": "^2.0|^3.0",
"hhvm/hhast": "^4.41"
}
}
147 changes: 92 additions & 55 deletions hack/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions hack/samples/sample_custom.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

use namespace Kazuhikoarase\QrcodeGenerator;

require_once(__DIR__.'/../vendor/hh_autoload.php');

<<__EntryPoint>>
function sample_custom(): noreturn {
require_once __DIR__.'/../vendor/autoload.hack';
\Facebook\AutoloadMap\initialize();
$qr = QrcodeGenerator\QRCode::getMinimumQRCode(
"日本語のQR 1234:! 漢字",
QrcodeGenerator\ErrorCorrectionPercentage::SEVEN,
Expand Down
4 changes: 2 additions & 2 deletions hack/samples/sample_html.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

use namespace Kazuhikoarase\QrcodeGenerator;

require_once(__DIR__.'/../vendor/hh_autoload.php');

<<__EntryPoint>>
function sample_html(): noreturn {
require_once __DIR__.'/../vendor/autoload.hack';
\Facebook\AutoloadMap\initialize();
//---------------------------------------------------------

print('<meta charset="UTF-8">');
Expand Down
3 changes: 2 additions & 1 deletion hack/samples/sample_image.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

use namespace Kazuhikoarase\QrcodeGenerator;

require_once(__DIR__.'/../vendor/hh_autoload.php');

<<__EntryPoint>>
function sample_image(): noreturn {
require_once __DIR__.'/../vendor/autoload.hack';
\Facebook\AutoloadMap\initialize();
$qr = QrcodeGenerator\QRCode::getMinimumQRCode(
"日本語のQR 1234:! 漢字",
QrcodeGenerator\ErrorCorrectionPercentage::SEVEN,
Expand Down
Loading

0 comments on commit 139ef3f

Please sign in to comment.