| Conditions | 1 |
| Total Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | protected function setUp(): void |
||
| 26 | { |
||
| 27 | parent::setUp(); |
||
| 28 | |||
| 29 | EnvSecurity::extend('laravel', function() { |
||
| 30 | return app('encrypter'); |
||
| 31 | }); |
||
| 32 | |||
| 33 | EnvSecurity::extend('test', function() { |
||
| 34 | return new class { |
||
| 35 | public function encrypt($plaintext) { |
||
| 36 | return base64_encode($plaintext); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function decrypt($ciphertext) { |
||
| 40 | return base64_decode($ciphertext); |
||
| 41 | } |
||
| 42 | }; |
||
| 43 | }); |
||
| 44 | |||
| 45 | Config::set('env-security.default', 'test'); |
||
| 46 | Config::set('env-security.store', __DIR__ . '/store'); |
||
| 47 | Config::set('env-security.destination', __DIR__ . '/.env-saved'); |
||
| 48 | } |
||
| 49 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths