Skip to content

Commit

Permalink
Disable native_function_invocation fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Dec 21, 2018
1 parent cdc3057 commit 5dba762
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .php_cs
Expand Up @@ -8,6 +8,7 @@ return PhpCsFixer\Config::create()
'array_syntax' => array('syntax' => 'long'),
'combine_consecutive_unsets' => true,
'concat_space' => ['spacing' => 'one'],
'native_function_invocation' => false,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
Expand Down
2 changes: 1 addition & 1 deletion bundle/Core/Limitation/TagLimitationType.php
Expand Up @@ -184,7 +184,7 @@ public function getCriterion(APILimitationValue $value, UserReference $currentUs
* @throws \eZ\Publish\API\Repository\Exceptions\NotImplementedException If the limitation does not support
* value schema
*
* @return mixed[]|int In case of array, a hash with key as valid limitations value and value as human readable name
* @return mixed[]|int in case of array, a hash with key as valid limitations value and value as human readable name
* of that option, in case of int on of VALUE_SCHEMA_* constants.
* Note: The hash might be an instance of Traversable, and not a native php array
*/
Expand Down
2 changes: 1 addition & 1 deletion bundle/Matcher/TagMatcherFactory.php
Expand Up @@ -47,7 +47,7 @@ public function __construct(
/**
* Returns the matcher object.
*
* @param string $matcherIdentifier The matcher class.
* @param string $matcherIdentifier the matcher class.
* If it begins with a '\' it means it's a fully qualified class name,
* otherwise it is relative to provided namespace (if available)
*
Expand Down
Expand Up @@ -161,7 +161,7 @@ public function testToFieldDefinition()
self::assertInstanceOf(FieldSettings::class, $fieldDefinition->fieldTypeConstraints->fieldSettings);
self::assertEquals(0, $fieldDefinition->fieldTypeConstraints->validators['TagsValueValidator']['subTreeLimit']);
self::assertEquals(10, $fieldDefinition->fieldTypeConstraints->validators['TagsValueValidator']['maxTags']);
self::assertEquals(true, $fieldDefinition->fieldTypeConstraints->fieldSettings['hideRootTag']);
self::assertTrue($fieldDefinition->fieldTypeConstraints->fieldSettings['hideRootTag']);
self::assertEquals('Select', $fieldDefinition->fieldTypeConstraints->fieldSettings['editView']);
self::assertNull($fieldDefinition->defaultValue->data);
}
Expand All @@ -174,6 +174,6 @@ public function testToFieldDefinition()
public function testGetIndexColumn()
{
$indexColumn = $this->converter->getIndexColumn();
self::assertEquals(false, $indexColumn);
self::assertFalse($indexColumn);
}
}

0 comments on commit 5dba762

Please sign in to comment.