Skip to content

Commit

Permalink
Set ignoreInternalFunctionFalseReturn and ignoreInternalFunctionNullR…
Browse files Browse the repository at this point in the history
…eturn to false by default
  • Loading branch information
robchett committed Sep 17, 2023
1 parent 7428e49 commit 1a97613
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions config.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
<xs:attribute name="findUnusedBaselineEntry" type="xs:boolean" default="false" />
<xs:attribute name="hideExternalErrors" type="xs:boolean" default="false" />
<xs:attribute name="hoistConstants" type="xs:boolean" default="false" />
<xs:attribute name="ignoreInternalFunctionFalseReturn" type="xs:boolean" default="true" />
<xs:attribute name="ignoreInternalFunctionNullReturn" type="xs:boolean" default="true" />
<xs:attribute name="ignoreInternalFunctionFalseReturn" type="xs:boolean" default="false" />
<xs:attribute name="ignoreInternalFunctionNullReturn" type="xs:boolean" default="false" />
<xs:attribute name="includePhpVersionsInErrorBaseline" type="xs:boolean" default="false" />
<xs:attribute name="inferPropertyTypesFromConstructor" type="xs:boolean" default="true" />
<xs:attribute name="memoizeMethodCallResults" type="xs:boolean" default="false" />
Expand Down
4 changes: 2 additions & 2 deletions docs/running_psalm/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ When `true`, Psalm will check that the developer has caught every exception in g
ignoreInternalFunctionFalseReturn="[bool]"
>
```
When `true`, Psalm ignores possibly-false issues stemming from return values of internal functions (like `preg_split`) that may return false, but do so rarely. Defaults to `true`.
When `true`, Psalm ignores possibly-false issues stemming from return values of internal functions (like `preg_split`) that may return false, but do so rarely. Defaults to `false`.

#### ignoreInternalFunctionNullReturn

Expand All @@ -222,7 +222,7 @@ When `true`, Psalm ignores possibly-false issues stemming from return values of
ignoreInternalFunctionNullReturn="[bool]"
>
```
When `true`, Psalm ignores possibly-null issues stemming from return values of internal array functions (like `current`) that may return null, but do so rarely. Defaults to `true`.
When `true`, Psalm ignores possibly-null issues stemming from return values of internal array functions (like `current`) that may return null, but do so rarely. Defaults to `false`.

#### inferPropertyTypesFromConstructor

Expand Down
4 changes: 2 additions & 2 deletions src/Psalm/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,12 +401,12 @@ class Config
/**
* @var bool
*/
public $ignore_internal_falsable_issues = true;
public $ignore_internal_falsable_issues = false;

/**
* @var bool
*/
public $ignore_internal_nullable_issues = true;
public $ignore_internal_nullable_issues = false;

/**
* @var array<string, bool>
Expand Down

0 comments on commit 1a97613

Please sign in to comment.