Skip to content

Commit 8cba375

Browse files
committed
Change name
1 parent 92f94c9 commit 8cba375

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Core/JVM/Invoker/Invokable.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
use PHPJava\Utilities\Formatter;
2222
use PHPJava\Utilities\SuperClassResolver;
2323
use PHPJava\Utilities\TypeResolver;
24-
use PHPJava\Core\JVM\Parameters\Settings;
24+
use PHPJava\Core\JVM\Parameters\Runtime;
2525

2626
trait Invokable
2727
{
@@ -112,7 +112,7 @@ function ($argument) {
112112
)['arguments'];
113113

114114
// does not strict mode can be PHP types
115-
if (!($this->options['strict'] ?? Settings::STRICT)) {
115+
if (!($this->options['strict'] ?? Runtime::STRICT)) {
116116
$formattedArguments = Formatter::signatureConvertToAmbiguousForPHP($formattedArguments);
117117
}
118118

@@ -121,13 +121,13 @@ function ($argument) {
121121
*/
122122
$methodSignature = Formatter::buildArgumentsSignature($formattedArguments);
123123

124-
if (!($this->options['validation']['method']['arguments_count_only'] ?? Settings::VALIDATION_METHOD_ARGUMENTS_COUNT_ONLY)) {
124+
if (!($this->options['validation']['method']['arguments_count_only'] ?? Runtime::VALIDATION_METHOD_ARGUMENTS_COUNT_ONLY)) {
125125
if ($methodSignature === $convertedPassedArguments) {
126126
$method = $methodReference;
127127
break;
128128
}
129129
}
130-
if (($this->options['validation']['method']['arguments_count_only'] ?? Settings::VALIDATION_METHOD_ARGUMENTS_COUNT_ONLY) === true) {
130+
if (($this->options['validation']['method']['arguments_count_only'] ?? Runtime::VALIDATION_METHOD_ARGUMENTS_COUNT_ONLY) === true) {
131131
$size = count($formattedArguments);
132132
$passedArgumentsSize = count(
133133
$arguments
@@ -181,7 +181,7 @@ function ($argument) {
181181
$mnemonicMap = new OpCode();
182182
$executedCounter = 0;
183183
while ($reader->getOffset() < $codeAttribute->getOpCodeLength()) {
184-
if (++$executedCounter > ($this->options['max_stack_exceeded'] ?? Settings::MAX_STACK_EXCEEDED)) {
184+
if (++$executedCounter > ($this->options['max_stack_exceeded'] ?? Runtime::MAX_STACK_EXCEEDED)) {
185185
throw new RuntimeException(
186186
'Max stack exceeded. PHPJava has been stopped by safety guard.' .
187187
' Maybe Java class has illegal program counter, stacks, or OpCode.'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
namespace PHPJava\Core\JVM\Parameters;
33

4-
final class Settings
4+
final class Runtime
55
{
66
const MAX_STACK_EXCEEDED = 9999;
77
const STRICT = true;

0 commit comments

Comments
 (0)