Skip to content

Commit 7bf7131

Browse files
authored
#20 Same unstable versioning as other packages
2 parents 1a698c2 + d6ff5d8 commit 7bf7131

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010

1111
[![Integrity check](https://github.com/mathematicator-core/engine/workflows/Integrity%20check/badge.svg)](https://github.com/mathematicator-core/engine/actions?query=workflow%3A%22Integrity+check%22)
1212
[![codecov](https://codecov.io/gh/mathematicator-core/engine/branch/master/graph/badge.svg)](https://codecov.io/gh/mathematicator-core/engine)
13-
[![Latest stable version](https://poser.pugx.org/mathematicator-core/engine/v/stable)](https://packagist.org/packages/mathematicator-core/engine)
13+
[![Latest Stable Version](https://poser.pugx.org/mathematicator-core/engine/v/stable)](https://packagist.org/packages/mathematicator-core/engine)
14+
[![Latest Unstable Version](https://poser.pugx.org/mathematicator-core/engine/v/unstable)](https://packagist.org/packages/mathematicator-core/engine)
1415
[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](./LICENSE)
1516
[![PHPStan Enabled](https://img.shields.io/badge/PHPStan-enabled%20L8-brightgreen.svg?style=flat)](https://phpstan.org/)
1617

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"require": {
1919
"php": ">=7.2",
2020
"contributte/psr11-container-interface": "^0.4.1",
21-
"mathematicator-core/numbers": "^2.1@dev",
22-
"mathematicator-core/tokenizer": "^2.1@dev",
21+
"mathematicator-core/numbers": "^2.2@dev",
22+
"mathematicator-core/tokenizer": "^2.2@dev",
2323
"nette/di": "^3.0",
2424
"nette/utils": "^3.0",
2525
"symfony/yaml": "^5.0",
@@ -77,7 +77,7 @@
7777
},
7878
"extra": {
7979
"branch-alias": {
80-
"dev-master": "2.1.x-dev"
80+
"dev-master": "2.2.x-dev"
8181
},
8282
"hooks": {
8383
"post-merge": "composer install",

tests/Bootstrap.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
namespace Mathematicator\Engine\Tests;
66

77

8-
require __DIR__ . '/../vendor/autoload.php';
9-
10-
118
use Mathematicator\Engine\Translation\TranslatorHelper;
129
use Nette\Configurator;
1310
use Nette\DI\Container;
1411
use Tester\Environment;
1512

16-
Environment::setup();
13+
if (\is_file($autoload = __DIR__ . '/../vendor/autoload.php')) {
14+
require_once $autoload;
15+
Environment::setup();
16+
}
1717

1818
class Bootstrap
1919
{
@@ -29,8 +29,8 @@ public static function boot(): Container
2929
->register();
3030

3131
$configurator
32-
->addConfig(__DIR__ . '/../common.neon')
33-
->addConfig(__DIR__ . '/../vendor/mathematicator-core/tokenizer/common.neon');
32+
->addConfig(__DIR__ . '/../vendor/mathematicator-core/tokenizer/common.neon')
33+
->addConfig(__DIR__ . '/../common.neon');
3434

3535
$container = $configurator->createContainer();
3636

0 commit comments

Comments
 (0)