Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added types #29

Merged
merged 1 commit into from
Jun 9, 2023
Merged

Added types #29

merged 1 commit into from
Jun 9, 2023

Conversation

MartinMystikJonas
Copy link
Contributor

This PR is based on #28 and adds type declaration wherever available and removes few unnecessary complications (like global helpers)

@MartinMystikJonas
Copy link
Contributor Author

@pionl Rebased


$containerConfigurator->parameters()
->set(Option::PARALLEL, false);
$containerConfigurator->cacheDirectory('/tmp/ecs');
Copy link
Owner

Choose a reason for hiding this comment

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

je tohle safe? Ne na každém operačím systému to bude fungovat ne?

{
return $this->customField;
}

public function toArray(): array
{
return $this->customField->jsonSerialize();
return $this->customField !== null ? $this->customField->jsonSerialize() : [];
Copy link
Owner

Choose a reason for hiding this comment

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

$this->customField?->jsonSerialize() ?? [] 

Použít tuto syntaxi?

*/
public function byId($byId)
public function byId($byId): self
Copy link
Owner

Choose a reason for hiding this comment

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

přidat string|int?

@pionl
Copy link
Owner

pionl commented Jun 9, 2023

Mergnu, můžeme řešiv dalším MR

@pionl pionl merged commit 0ffd52b into pionl:master Jun 9, 2023
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