Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6240

PHP return value detection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 12.1, 12.2, 12.3, 12.4, 12.5
    • None
    • php - Editor
    • None

    Description

       

          /**
           * Foo mock factory
           *
           * @param string[] $methods [OPTIONAL] List of mocked method names
           * @return Foo|MockObject
           */
          protected function createFooMock(array $methods = []): MockObject
          {
              $mock = $this->createPartialMock(Foo::class, $methods);
              return $mock;
          } 

      When the method return `MockObject` that represent some class, it will be useful when the NetBeans will suggest methods also from the represented class.

      In the NetBeans 8 was this mechanism, but disappear.

      Will it be possible to return it back, please?

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            zeleznypa Pavel Železný
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: