Skip to content

Overriding deprecated fields does not result in an error #183

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';
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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