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

Location issues #164

Closed
ichiriac opened this issue Jul 10, 2018 · 2 comments
Closed

Location issues #164

ichiriac opened this issue Jul 10, 2018 · 2 comments
Assignees

Comments

@ichiriac
Copy link
Member

Related to prettier/plugin-php#246 :

<?php

// good behaviour
declare (foo = true);
echo $foo;
return $foo;
continue;
break;
global $foo, $bar;
static $foo;
class foo {}
throw new \Exception($bad);

// bad behaviour
const foo = 1;
static::$foo;
foo::bar;
class ok {
  static function bad() { }
}
// any expr based statement
$foo = 1 + 2;
@ichiriac
Copy link
Member Author

This fix is now relased under 3.0.0-alpha.3

@ichiriac
Copy link
Member Author

ichiriac commented Sep 8, 2018

3.0.0-prerelease.4

@ichiriac ichiriac closed this as completed Sep 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant