2121use PHPJava \Utilities \Formatter ;
2222use PHPJava \Utilities \SuperClassResolver ;
2323use PHPJava \Utilities \TypeResolver ;
24- use PHPJava \Core \JVM \Parameters \Settings ;
24+ use PHPJava \Core \JVM \Parameters \Runtime ;
2525
2626trait 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. '
0 commit comments