Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-80350

PHP 8.3 - Use the new json_validate function where a poor-man's validation is performed

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.3
    • General
    • None
    • MOODLE_403_STABLE

      As a follow up of this issue  MDL-79895

      PHP 8.3 adds a new function named json_validate that returns true or false whether the given string is a valid JSON string. Here more information about it https://php.watch/versions/8.3/json_validate

      The task for this ticket will be: 

      • Check the possibilities to use the new json_validate in places where we currently perform poor-man's validation
      • Create a polyfill, with tests, and make use of it in a few places. Document its existence, and create a todo to remove it when our minimum version is 8.3. 
      • This task will be done only for master. 

            Unassigned Unassigned
            raquel.ortega@moodle.com Raquel Ortega
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.