Skip to content

Commit c36c2d5

Browse files
committed
Bugfixes.
1 parent cf50230 commit c36c2d5

File tree

1 file changed

+10
-4
lines changed
  • jphp-gui-ext/src-jvm/main/java/org/develnext/jphp/ext/javafx/classes

1 file changed

+10
-4
lines changed

jphp-gui-ext/src-jvm/main/java/org/develnext/jphp/ext/javafx/classes/UXList.java

+10-4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import php.runtime.annotation.Reflection.Name;
1212
import php.runtime.annotation.Reflection.Signature;
1313
import php.runtime.common.Callback;
14+
import php.runtime.common.HintType;
1415
import php.runtime.common.Messages;
1516
import php.runtime.env.Environment;
1617
import php.runtime.env.TraceInfo;
@@ -305,7 +306,12 @@ public int getCount() {
305306
}
306307

307308
@Override
308-
@Signature
309+
@Signature(
310+
value = {@Reflection.Arg("offset")},
311+
result = @Reflection.Arg(
312+
type = HintType.BOOLEAN
313+
)
314+
)
309315
public Memory offsetExists(Environment environment, Memory... memories) {
310316
ObservableList list = getWrappedObject();
311317
int index = memories[0].toInteger();
@@ -314,7 +320,7 @@ public Memory offsetExists(Environment environment, Memory... memories) {
314320
}
315321

316322
@Override
317-
@Signature
323+
@Signature({@Reflection.Arg("offset")})
318324
public Memory offsetGet(Environment environment, Memory... memories) {
319325
ObservableList list = getWrappedObject();
320326
int index = memories[0].toInteger();
@@ -323,7 +329,7 @@ public Memory offsetGet(Environment environment, Memory... memories) {
323329
}
324330

325331
@Override
326-
@Signature
332+
@Signature({@Reflection.Arg("offset"), @Reflection.Arg("value")})
327333
public Memory offsetSet(Environment environment, Memory... memories) {
328334
if (memories[0].isNull()) {
329335
getWrappedObject().add(unwrap(environment, memories[1], "offsetSet"));
@@ -336,7 +342,7 @@ public Memory offsetSet(Environment environment, Memory... memories) {
336342
}
337343

338344
@Override
339-
@Signature
345+
@Signature({@Reflection.Arg("offset")})
340346
public Memory offsetUnset(Environment environment, Memory... memories) {
341347
ObservableList list = getWrappedObject();
342348
int index = memories[0].toInteger();

0 commit comments

Comments
 (0)