Task #1209

Make @required default and add @optional instead

Added by Karsten Dambekalns almost 14 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Could have
Category:
Object
Target version:
-
Start date:
Due date:
% Done:

100%

Estimated time:
Sprint:
PHP Version:
Has patch:
Complexity:

Description

Setter injection methods can currently be annotated with @required. It seems to be that most injected dependencies are required, so this should be the default and instead optional dependencies should be marked with @optional.

Also available in: Atom PDF