src/Behat/Behat/HelperContainer/BuiltInServiceContainer.php
private function assertFactoryMethodIsStatic(ReflectionMethod $method)
    {
        if (!$method->isStatic()) {
            throw new WrongServicesConfigurationException(sprintf(
                'Service factory methods must be static, but `%s::%s` is not.',
                $method->getDeclaringClass()->getName(),
                $method->getName()
            ));
        }
    }
private function assertFactoryMethodIsStatic(ReflectionMethod $method)
    {
        if (!$method->isStatic()) {
            throw new WrongServicesConfigurationException(sprintf(
                'Service factory methods must be static, but `%s::%s` is not.',
                $method->getDeclaringClass()->getName(),
                $method->getName()
            ));
        }
    }
private function assertFactoryMethodIsStatic ( ReflectionMethod $ method ) { if ( ! $ method -> isStatic ( ) ) { throw new WrongServicesConfigurationException ( sprintf ( 'Service factory methods must be static, but `%s::%s` is not.' , $ method -> getDeclaringClass ( ) -> getName ( ) , $ method -> getName ( ) ) ) ; } }
Checks if factory method is static.

@param ReflectionMethod $method

@throws WrongServicesConfigurationException
Checks if factory method is static .