Closed (fixed)
Project:
Automatic Updates
Version:
3.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Nov 2023 at 17:06 UTC
Updated:
13 Dec 2023 at 22:09 UTC
Jump to comment: Most recent
Comments
Comment #3
tedbowComment #5
phenaproximaI'm pretty much happy with this, although it occurs to me that we could make
type()a protected property or class constant, rather than a method, and still keep our rules about subclasses overridding it (\ReflectionPropertyand\ReflectionClassConstantboth have thegetDeclaringClass()method).The only downside is that it would no longer have any dynamism, but I'm honestly not sure if we really need that anyway.
Comment #6
tedbow@phenaproxima re #5 I changed this to protected string. I agree it simpler.
As long as it is not a constant it can still be somewhat dynanmic.
for instance we could have have our attended and unattended stages be one class with 2 different services using this class. Just add a
$moreproperty to the constructor and in the constructor set the$this->typevalue.Comment #7
phenaproximaCouple of small things but this otherwise looks good to me.
Comment #8
tedbowAccepted suggestions and 1 more cleanup
Comment #9
phenaproximaOne suggestion but RTBC overall.
Comment #11
phenaproximaComment #12
tedbowugh the test failure I think is #3397228: Possible random failure in build tests for cron updates. 3.0.x is passing after the merge