Skip to content

Commit 9f803c4

Browse files
authored
Merge pull request #21 from sunrise-php/release/v2.1.2
v2.1.2
2 parents 06eb694 + c6abb68 commit 9f803c4

17 files changed

+118
-121
lines changed

.circleci/config.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,40 @@ jobs:
1010
steps:
1111
- checkout
1212
- run: php -v
13-
- run: composer install --no-interaction --prefer-source --no-suggest
14-
- run: php vendor/bin/phpunit --colors=always
13+
- run: composer install --no-interaction
14+
- run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text
1515
php72:
1616
docker:
1717
- image: circleci/php:7.2-cli-node-browsers
1818
steps:
1919
- checkout
2020
- run: php -v
21-
- run: composer install --no-interaction --prefer-source --no-suggest
22-
- run: php vendor/bin/phpunit --colors=always
21+
- run: composer install --no-interaction
22+
- run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text
2323
php73:
2424
docker:
2525
- image: circleci/php:7.3-cli-node-browsers
2626
steps:
2727
- checkout
2828
- run: php -v
29-
- run: composer install --no-interaction --prefer-source --no-suggest
30-
- run: php vendor/bin/phpunit --colors=always
29+
- run: composer install --no-interaction
30+
- run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text
3131
php74:
3232
docker:
3333
- image: circleci/php:7.4-cli-node-browsers
3434
steps:
3535
- checkout
3636
- run: php -v
37-
- run: composer install --no-interaction --prefer-source --no-suggest
38-
- run: php vendor/bin/phpunit --colors=always
37+
- run: composer install --no-interaction
38+
- run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text
3939
php80:
4040
docker:
4141
- image: circleci/php:8.0-cli-node-browsers
4242
steps:
4343
- checkout
4444
- run: php -v
45-
- run: composer install --no-interaction --prefer-source --no-suggest
46-
- run: php vendor/bin/phpunit --colors=always
45+
- run: composer install --no-interaction
46+
- run: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-text
4747
workflows:
4848
version: 2
4949
build:

.editorconfig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,5 @@ indent_size = 4
1111
trim_trailing_whitespace = true
1212
insert_final_newline = true
1313

14-
[*.md]
15-
trim_trailing_whitespace = false
16-
1714
[*.yml]
1815
indent_size = 2

.gitignore

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
.php_cs.cache
2-
.phpunit.result.cache
3-
composer.lock
4-
coverage.xml
5-
phpbench.json
6-
phpcs.xml
7-
phpunit.xml
8-
vendor/
1+
/.php_cs.cache
2+
/.phpunit.result.cache
3+
/composer.lock
4+
/coverage.xml
5+
/phpbench.json
6+
/phpcs.xml
7+
/phpunit.xml
8+
/psalm.xml
9+
/vendor/

.scrutinizer.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
build:
2+
environment:
3+
php:
4+
version: '8.0'
25
nodes:
36
analysis:
47
tests:
@@ -7,7 +10,7 @@ build:
710
coverage:
811
tests:
912
override:
10-
- command: php vendor/bin/phpunit --coverage-clover coverage.xml
13+
- command: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-clover coverage.xml
1114
coverage:
1215
file: coverage.xml
1316
format: clover

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 Sunrise // PHP
3+
Copyright (c) 2018 Anatoly Nekhay
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Simple slugger for PHP 7.1+ (incl. PHP 8) based on ICU
1+
# Simple slugger for PHP 7.1+ based on ICU
22

33
[![Gitter](https://badges.gitter.im/sunrise-php/support.png)](https://gitter.im/sunrise-php/support)
44
[![Build Status](https://circleci.com/gh/sunrise-php/slugger.svg?style=shield)](https://circleci.com/gh/sunrise-php/slugger)
@@ -8,10 +8,6 @@
88
[![Latest Stable Version](https://poser.pugx.org/sunrise/slugger/v/stable?format=flat)](https://packagist.org/packages/sunrise/slugger)
99
[![License](https://poser.pugx.org/sunrise/slugger/license?format=flat)](https://packagist.org/packages/sunrise/slugger)
1010

11-
## Awards
12-
13-
[![SymfonyInsight](https://insight.symfony.com/projects/64e80815-60f3-47eb-8163-8bd2538376e9/big.svg)](https://insight.symfony.com/projects/64e80815-60f3-47eb-8163-8bd2538376e9)
14-
1511
## Installation
1612

1713
```bash

composer.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "sunrise/slugger",
33
"homepage": "https://github.com/sunrise-php/slugger",
4-
"description": "Simple slugger for PHP 7.1+ (incl. PHP 8) based on ICU",
4+
"description": "Slugger for PHP 7.1+ based on ICU",
55
"license": "MIT",
66
"keywords": [
77
"fenric",
@@ -14,17 +14,17 @@
1414
"authors": [
1515
{
1616
"name": "Anatoly Fenric",
17-
"email": "anatoly@fenric.ru",
18-
"homepage": "https://anatoly.fenric.ru/"
17+
"email": "afenric@gmail.com",
18+
"homepage": "https://github.com/fenric"
1919
}
2020
],
2121
"require": {
22-
"ext-intl": "*",
23-
"php": "^7.1|^8.0"
22+
"php": "^7.1|^8.0",
23+
"ext-intl": "*"
2424
},
2525
"require-dev": {
26-
"sunrise/coding-standard": "1.0.0",
27-
"phpunit/phpunit": "7.5.20|9.5.0"
26+
"phpunit/phpunit": "7.5.20|9.5.0",
27+
"sunrise/coding-standard": "1.0.0"
2828
},
2929
"autoload": {
3030
"psr-4": {
@@ -34,7 +34,12 @@
3434
"scripts": {
3535
"test": [
3636
"phpcs",
37-
"XDEBUG_MODE=coverage phpunit --colors=always --coverage-text"
37+
"psalm",
38+
"XDEBUG_MODE=coverage phpunit --coverage-text --colors=always"
39+
],
40+
"build": [
41+
"phpdoc -d src/ -t phpdoc/",
42+
"XDEBUG_MODE=coverage phpunit --coverage-html coverage/"
3843
]
3944
}
4045
}

phpunit.xml.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<?xml version="1.0"?>
22
<phpunit
3-
colors="true"
43
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
5+
>
66
<coverage>
77
<include>
88
<directory>./src</directory>
99
</include>
1010
</coverage>
1111
<testsuites>
12-
<testsuite name="Sunrise Slugger Test Suite">
12+
<testsuite name="sunrise/slugger">
1313
<directory>./tests/</directory>
1414
</testsuite>
1515
</testsuites>

psalm.xml.dist

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0"?>
2+
<psalm
3+
errorLevel="1"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xmlns="https://getpsalm.org/schema/config"
6+
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
7+
>
8+
<projectFiles>
9+
<directory name="src" />
10+
<ignoreFiles>
11+
<directory name="vendor" />
12+
</ignoreFiles>
13+
</projectFiles>
14+
</psalm>

src/Exception/Exception.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,9 @@
1313

1414
namespace Sunrise\Slugger\Exception;
1515

16-
/**
17-
* Import classes
18-
*/
19-
use Exception as BaseException;
20-
2116
/**
2217
* Exception
2318
*/
24-
class Exception extends BaseException implements ExceptionInterface
19+
class Exception extends \Exception implements ExceptionInterface
2520
{
2621
}

0 commit comments

Comments
 (0)