stdClass type is wrongly recognized as object

Created on 17 June 2019, about 5 years ago
Updated 31 January 2023, over 1 year ago

The issues has appeared recently probably after release 8.x-3.4.

/**
 * Method description.
 *
 * @param \stdClass $foo
 *  eter decsriptioniption.
 */
public function __construct(\stdClass $foo) {

}

The code sniffer complains on the above code with the following message:

Expected "object" but found "\stdClass" for parameter type

πŸ’¬ Support request
Status

Fixed

Version

3.4

Component

Coder Sniffer

Created by

πŸ‡·πŸ‡ΊRussia Chi

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

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.69.0 2024