Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Conversation

@thewilkybarkid
Copy link
Contributor

Helps reduce type coercion.

@thewilkybarkid thewilkybarkid added the feature New feature or request label Sep 24, 2018
@thewilkybarkid thewilkybarkid added this to the 0.2.0 milestone Sep 24, 2018
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Technically there can be multiple directives, so placing this in its own block.

Realistically (for now), there are no other directives, so would be a little cleaner to have it all on one-line: <?php declare(strict_types=1);.

Choose a reason for hiding this comment

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

I get it's verbose to have too many lines (and empty lines) boilerplate at the start of every file. It would also be unexpected to find anything after <?php however

@thewilkybarkid thewilkybarkid merged commit f7c3df5 into libero:master Sep 24, 2018
@thewilkybarkid thewilkybarkid deleted the declare-strict-types branch September 24, 2018 15:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants