| Conditions | 4 |
| Paths | 4 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 30 | public function __construct(ScalarSchema $schema, $force32Bit = false) |
||
| 31 | { |
||
| 32 | parent::__construct($schema); |
||
| 33 | $this->is32BitSystem = $force32Bit === true ? true : PHP_INT_SIZE === 4; |
||
| 34 | |||
| 35 | /** @var ScalarSchema $scalarSchema */ |
||
| 36 | $scalarSchema = $this->schema; |
||
| 37 | |||
| 38 | if ($this->is32BitSystem && $scalarSchema->hasFormat(Schema::FORMAT_INT64)) { |
||
| 39 | throw new UnsupportedException("Schema unsupported: Operating system does not support 64 bit integers"); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 58 |