Page MenuHomePhabricator

ApiErrorFormatter_BackCompat::arrayFromStatus() tries to access protected StatusValue::$errors
Closed, InvalidPublic

Event Timeline

Anomie subscribed.

It looks like rMWc15caa6d53b4: Split StatusValue out of Status class and put it in /libs removed the public errors member from Status without maintaining backwards compatibility like it did for most other members, and it wasn't noticed that this affected rMW1c57794e371d: API: Overhaul ApiResult, make format=xml not throw, and add json formatversion which was written first but merged after.

Actually, scratch that. Status::__get has the backwards compatibility, and it still works, which is why this hasn't been making unit tests fail.

ApiErrorFormatter_BackCompat::arrayFromStatus() doesn't accept a StatusValue, only a Status.