Skip to content

Overriding deprecated fields does not result in an error #183

@Akhristenko

Description

@Akhristenko

This code does not produce any error:

<?php
class A {
	/**
	 * @deprecated
	 */
	protected static string $staticVar = 'staticVarInA';

	/**
	 * @deprecated
	 */
	protected string $var = 'varInA';
}

class B extends A {
	protected static string $staticVar = 'staticVarInB';
	protected string $var = 'varInB';
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions