editor_load issue - phpstan expects int

Created on 15 December 2023, over 1 year ago

Problem/Motivation

PHPstan is giving a warning when using the editor_load function.
Parameter #1 $format_id of function editor_load expects int, string given.

When creating a text-format the machine name can be anything, not just an int.

Steps to reproduce

Run phpstan when using the function editor_load()

Proposed resolution

Change the expected argument to int|string

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

๐Ÿ› Bug report
Status

Active

Version

10.0 โœจ

Component
Editorย  โ†’

Last updated 14 days ago

Created by

๐Ÿ‡ณ๐Ÿ‡ฑNetherlands robertragas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024