Skip to content

Commit 7fb5748

Browse files
authored
Merge pull request #271 from vitormattos/master
Bump packages versions
2 parents d48c6ce + a0deca9 commit 7fb5748

5 files changed

Lines changed: 16 additions & 19 deletions

File tree

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Implement JVM by PHP",
44
"type": "library",
55
"license": "MIT",
6-
"version": "0.0.9.0-dev",
6+
"minimum-stability": "dev",
77
"authors": [
88
{
99
"name": "memory"
@@ -15,12 +15,12 @@
1515
"require": {
1616
"php": ">=7.3",
1717
"ext-zip": "*",
18-
"monolog/monolog": "^1.24",
18+
"monolog/monolog": "^2.2",
1919
"gabrielelana/byte-units": "^0.5.0",
20-
"symfony/console": "^4.2",
21-
"phpdocumentor/reflection-docblock": "^4.3",
22-
"brick/math": "^0.8.8",
23-
"nikic/php-parser": "^4.2"
20+
"symfony/console": "^5.2",
21+
"phpdocumentor/reflection-docblock": "^5.2",
22+
"brick/math": "^0.9.1",
23+
"nikic/php-parser": "^4.10"
2424
},
2525
"autoload": {
2626
"psr-4": {
@@ -34,10 +34,10 @@
3434
}
3535
},
3636
"require-dev": {
37-
"phpunit/phpunit": "^8.0",
38-
"squizlabs/php_codesniffer": "^3.4",
39-
"friendsofphp/php-cs-fixer": "^2.14",
40-
"brainmaestro/composer-git-hooks": "^2.6"
37+
"phpunit/phpunit": "^9.5",
38+
"squizlabs/php_codesniffer": "^3.5",
39+
"friendsofphp/php-cs-fixer": "^2.17",
40+
"brainmaestro/composer-git-hooks": "^2.8"
4141
},
4242
"scripts": {
4343
"test": "phpunit",

src/Compiler/Lang/Assembler/Bundler/Packages/Constants.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,6 @@ class Constants extends AbstractPackageBundler implements PackageBundlerInterfac
4444
*/
4545
const PHP_VERSION_ID = PHP_VERSION_ID;
4646

47-
/**
48-
* @var
49-
* @export
50-
*/
51-
const PHP_EXTRA_VERSION = PHP_EXTRA_VERSION;
52-
5347
/**
5448
* @var \PHPJava\Packages\java\lang\String_
5549
* @export

src/Core/JavaArchive.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ public function __construct(string $jarFile, array $options = [])
110110
if (empty($attribute)) {
111111
continue;
112112
}
113+
if (strpos($attribute, ':') === false) {
114+
continue;
115+
}
113116
[$name, $value] = explode(':', $attribute);
114117
$this->manifestData[strtolower($name)] = trim($value);
115118
}

src/Kernel/Mnemonics/_ldc_w.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function execute(): void
4444
} elseif ($data instanceof Float_) {
4545
$value = \PHPJava\Kernel\Types\Float_::get($data->getBytes());
4646
} else {
47-
$value = $cpInfo[$data->getStringIndex()];
47+
$value = $cpInfo[$data->getClassIndex()];
4848
}
4949

5050
$this->pushToOperandStack($value);

tests/Cases/Compiler/MagicConstantTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testMagicConstDir()
4242
{
4343
[$output, $return] = $this->runJavaTest(__METHOD__);
4444

45-
$this->assertRegExp(
45+
$this->assertMatchesRegularExpression(
4646
'#php-java/tests/Cases/Compiler/Codes$#',
4747
$output[0]
4848
);
@@ -52,7 +52,7 @@ public function testMagicConstFile()
5252
{
5353
[$output, $return] = $this->runJavaTest(__METHOD__);
5454

55-
$this->assertRegExp(
55+
$this->assertMatchesRegularExpression(
5656
'#php-java/tests/Cases/Compiler/Codes/TestMagicConstFile.php$#',
5757
$output[0]
5858
);

0 commit comments

Comments
 (0)