-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscoper.php
More file actions
21 lines (17 loc) · 872 Bytes
/
scoper.php
File metadata and controls
21 lines (17 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
declare(strict_types=1);
require __DIR__ . '/vendor/autoload.php';
$nowDateTime = new DateTime('now');
$timestamp = $nowDateTime->format('Ym');
// @see https://github.com/humbug/php-scoper/blob/master/docs/further-reading.md
return [
'prefix' => 'SmokeTestgen' . $timestamp,
'expose-constants' => ['#^SYMFONY\_[\p{L}_]+$#'],
'exclude-namespaces' => ['#^Rector\\\\SmokeTestgen#', '#^App\\\\#', '#^App#', '#^Symfony\\\\Polyfill#', '#^PHPUnit\\\\'],
'exclude-classes' => ['AppKernel', 'Kernel', 'App\\Kernel'],
'exclude-files' => [
// do not prefix "trigger_deprecation" from symfony - https://github.com/symfony/symfony/commit/0032b2a2893d3be592d4312b7b098fb9d71aca03
// these paths are relative to this file location, so it should be in the root directory
'vendor/symfony/deprecation-contracts/function.php',
],
];