Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change introduces an option to have the configuration split across several files using standard XInclude tags. This may be useful for more complex configs, or to include auto-generated parts into a manually written config file.
- Loading branch information
Showing
8 changed files
with
130 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
namespace Vimeo\Test\DummyProject; | ||
|
||
class Bar | ||
{ | ||
use SomeTrait; | ||
|
||
/** @var string */ | ||
public $x; | ||
|
||
public function __construct() | ||
{ | ||
$this->x = 'hello'; | ||
} | ||
} | ||
|
||
/** | ||
* @return void | ||
*/ | ||
function someFunction() | ||
{ | ||
echo 'here'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
namespace Vimeo\Test\DummyProject; | ||
|
||
class Bat | ||
{ | ||
public function __construct() | ||
{ | ||
$a = new Bar(); | ||
|
||
someFunction(); | ||
someOtherFunction(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
namespace Vimeo\Test\DummyProject; | ||
|
||
trait SomeTrait | ||
{ | ||
} | ||
|
||
/** | ||
* @return void | ||
*/ | ||
function someOtherFunction() | ||
{ | ||
echo 'here'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectFiles xmlns="https://getpsalm.org/schema/config"> | ||
<file name="Bar.php" /> | ||
<file name="Bat.php" /> | ||
</projectFiles> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0"?> | ||
<psalm | ||
totallyTyped="true" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="https://getpsalm.org/schema/config" | ||
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd" | ||
xmlns:xi="http://www.w3.org/2001/XInclude" | ||
> | ||
<xi:include href="files.xml"/> | ||
</psalm> |