-
Notifications
You must be signed in to change notification settings - Fork 1
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
Ruleset fully_qualified_strict_types
is creating invalid code
#17
Comments
We should remove |
yeah let's do that and do a "quick" 1.2.1 |
For the record, there are several issues and PRs opened regarding this rule, I think PHP-CS-Fixer/PHP-CS-Fixer#7719 would fix the issue you had. But for now let’s just remove the rule to be able to update our coding-standard. We may try it again in some time. |
There are currently too many issues for the rule on the project itself #17 PHP-CS-Fixer/PHP-CS-Fixer#7719 Signed-off-by: Joas Schilling <[email protected]>
Let keep this open as reminder? |
fully_qualified_strict_types
is creating invalid code
IMHO you should keep /**
* @Then /^user "([^"]*)" creates room "([^"]*)" \((v4)\)$/
*/
public function userCreatesRoom(string $user, string $identifier, string $apiVersion, ?TableNode $formData = null): void {
$this->userCreatesRoomWith($user, $identifier, 201, $apiVersion, $formData);
} Then you don't need to wait for PHP-CS-Fixer/PHP-CS-Fixer#7719 and have less code in the repo 😉. |
We most probably have tags in places which are not superfluous and those would get messed-up by the rule as well. Also seeing several bug reports and open pull request against the same rule has made me scared to add it for now. |
Only actually superfluous tags are removed (where type in phpDoc is exactly the same as in native signature + there's no additional description), so maybe just try how it works in practice 🙂. In terms of |
Talk integration tests have this file which imports
TableNode
:https://github.com/nextcloud/spreed/blob/0d1fc13e36e40a6cd8dfa80915ea77f06b835f80/tests/integration/features/bootstrap/FeatureContext.php#L27
But the autofixing is breaking the docs by adding a leading
\
because the file itself has no namespaceThe text was updated successfully, but these errors were encountered: