Skip to content

[CT] Generate method should know to create a static method if invoked on static call #759

Closed
phpactor/code-transform
#25

Description

@dantleech

Currently calling generate method on a static call will generate a non-static method. It should create a static method.

Foobar::bar<>foo();
// should generate
class Foobar
{
    public static function foo()
    {
    }
}

but it generates public function foo()

Activity

  1. changed the title [-][CT[/-] [+][CT] Generate method should know to create a static method if invoked on static call[/+] on May 11, 2019
  2. added 3 commits that reference this issue on Jun 20, 2019
    b16b3bb
    3bd8901
    a80985a
  3. added a commit that references this issue on Aug 25, 2019
    2d2d6bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions