File: generate.php

package info (click to toggle)
php-webmozart-assert 2.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,220 kB
  • sloc: php: 7,114; xml: 13; makefile: 13
file content (16 lines) | stat: -rw-r--r-- 378 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

declare(strict_types=1);

/**
 * this file is used by maintainers of the library to re-generate the type definitions
 * of webmozart/assert: you probably don't need to use it.
 */

use Webmozart\Assert\Bin\MixinGenerator;

require_once __DIR__.'/../vendor/autoload.php';

file_put_contents(__DIR__.'/../src/Mixin.php', (new MixinGenerator())->generate());

echo "Done.";