Skip to content

False error 'UnusedThrows' when using new SplFileObject #106

@VincentLanglet

Description

@VincentLanglet

The code

	/**
	 * @throws \Exception
	 */
	public function shouldBeCorrect()
	{
		new \SplFileObject(''); // The phpdoc say @throws RuntimeException
	}

Is failing with the error message Unused @throws Exception annotation

See #105

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions