Php8. Expected an object instance when accessing an instance property, but saw an expression $file with type bool

Created on 13 June 2022, over 2 years ago
Updated 10 January 2024, about 1 year ago

Problem/Motivation

Phan scan catch an error on PHP8 version

Expected an object instance when accessing an instance property, but saw an expression $file with type bool on plupload/plupload.module line 239
Expected an object instance when accessing an instance property, but saw an expression $file with type bool on plupload/plupload.module line 240

Steps to reproduce

Run phan scan- on PHP8

Proposed resolution

Seems that error in annotaion in https://git.drupalcode.org/project/plupload/-/blob/7.x-1.7/plupload.modu... function should return object because variable $wrapper never used https://git.drupalcode.org/project/plupload/-/blob/7.x-1.7/plupload.modu...

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇾Belarus Andrei Haurukovich Minsk

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024