Skip to content

null passed to construct, assumes config values #12

@poing

Description

@poing
$earmark = new Earmark(null, null, null, 20000, null);  // Start with 20000

Running $earmark->get() returns ECHO00020000 instead of 20000 as I have set it in the config to prefix with ECHO with a padding of 8. Is there a better way to handle this? As the extension is an integer value in the database it will not accept it.


This is caused by the construct() prioritizing values from the config when null are passed to the method().

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions