I have an abstract ParentClass with an protected $instanceVariable. Now there's a ChildClass which has also an private $instanceVariable. It sets that to an initial value, like:
private $instanceVariable = 5;
So the child class overrides it and changes the visibility to private. The parent class does not assign a value to that instance variable. It's also declared in the parent class because there are methods that access it.
Is this just fine with PHP?