Skip to content

Conversation

@smnandre
Copy link

@smnandre smnandre commented Feb 2, 2024

(i'd put that on an Icon class, but this is another PR 👼)

I really would like to

  1. normalize things as early as possible
  2. don't have multiple place where those checks are done, the main risk beeing they are not done..

Open to debate :)

(i'd put that on an Icon class, but this is another PR 👼)

I really would like to
1. normalize things as early as possible
2. don't have multiple place where those checks are done, the main risk beeing they are not done..
@smnandre
Copy link
Author

smnandre commented Feb 3, 2024

@kbond should i redo it for the draft-2 branch, or can we already discuss it ? As you want

* @throws \InvalidArgumentException if the ID is not valid
* @see isValidId()
*/
public static function idToName(string $id): string
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could these be added to the Icon object in #7?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If so, then combine this PR with an updated #7.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do in a moment !

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#9

@kbond kbond mentioned this pull request Feb 3, 2024
@smnandre smnandre closed this Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants