Lempar.php reports $this being used in a plain function

Issue #480 new
Former user created an issue

When I run PHPCS to check for PHP8.0 compatibility I get the following issues reported. I can see that Lemon parser has not been updated for a long time and I am not sure how this might affect anything when actually used. Could you comment to reassure our end users?

FILE: moodle-qbehaviour_interactivehints/blocks/formal_langs/PHP_ParserGenerator/Lempar.php

Line 329: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 332: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 333: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 340: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 350: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 351: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 366: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 366: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 371: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 372: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 374: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 380: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 381: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 387: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 388: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 389: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 389: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 395: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 396: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 402: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 406: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 406: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 409: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 410: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 416: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 417: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 444: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 444: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 448: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 449: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 451: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 457: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 458: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 464: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 465: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 466: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 466: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 470: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 471: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 476: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 480: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 480: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 483: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 484: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 494: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 495: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 505: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 506: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 521: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 521: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 545: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 594: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 595: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 596: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 600: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 601: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 612: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 613: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 617: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 619: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 700: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 700: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 708: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 711: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 712: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 713: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 717: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 720: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 722: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 722: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 722: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 729: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 734: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 734: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 736: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 739: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 753: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 754: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 783: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 784: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 812: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 812: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 814: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 815: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 819: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 820: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 834: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 837: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 848: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 851: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 857: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 858: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 859: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 865: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 894: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 895: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 897: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 897: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 907: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 910: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 912: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 914: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 916: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 917: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 918: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 922: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 925: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 938: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 939: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 941: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 942: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 944: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 949: "$this" can no longer be used in a plain function or method since PHP 7.1. Line 952: "$this" can no longer be used in a plain function or method since PHP 7.1.

Comments (1)

  1. Oleg Sychev repo owner

    The folder moodle-qbehaviour_interactivehints/blocks/formal_langs/PHP_ParserGenerator contains library code intended for developers who want to add support of a new language. It isn’t directly used in production code.

  2. Log in to comment