From cfbf65de4a069784f7d0790c470c52105c74c479 Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Mon, 20 Jun 2016 17:12:40 +0200 Subject: [PATCH] Remove `beberlei/assert`. Resolves #22 --- composer.json | 1 - composer.lock | 333 ++++++++++++++++++++++++++----------- src/Shortcode.php | 5 - src/ShortcodeUI.php | 3 - src/TemplatedShortcode.php | 1 - 5 files changed, 239 insertions(+), 104 deletions(-) diff --git a/composer.json b/composer.json index 21b8eb7..64f8ede 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,6 @@ } ], "require": { - "beberlei/assert": ">=2.5", "brightnucleus/config": ">=0.2", "brightnucleus/exceptions": ">=0.2", "brightnucleus/dependencies": ">=0.2", diff --git a/composer.lock b/composer.lock index 9bf17d1..8656cde 100644 --- a/composer.lock +++ b/composer.lock @@ -4,21 +4,21 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "7f47ea4547d26a1edf3beff6b57bfe7d", - "content-hash": "087b715a8839beec5ec123b7539edb09", + "hash": "d3342946f5487fe68c1729e13d37f11c", + "content-hash": "b65e6ffd3b88a76c2103272e8cfb9774", "packages": [ { "name": "beberlei/assert", - "version": "v2.5", + "version": "v2.5.1", "source": { "type": "git", "url": "https://github.com/beberlei/assert.git", - "reference": "91e2690c4ecc8a4e3e2d333430069f6a0c694a7a" + "reference": "8a9ad22f1220e47a6d174843e8abef08f5eac441" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/beberlei/assert/zipball/91e2690c4ecc8a4e3e2d333430069f6a0c694a7a", - "reference": "91e2690c4ecc8a4e3e2d333430069f6a0c694a7a", + "url": "https://api.github.com/repos/beberlei/assert/zipball/8a9ad22f1220e47a6d174843e8abef08f5eac441", + "reference": "8a9ad22f1220e47a6d174843e8abef08f5eac441", "shasum": "" }, "require": { @@ -58,31 +58,29 @@ "assertion", "validation" ], - "time": "2016-03-22 14:34:51" + "time": "2016-06-20 12:01:28" }, { "name": "brightnucleus/config", - "version": "v0.3.1", + "version": "v0.4.2", "source": { "type": "git", "url": "https://github.com/brightnucleus/config.git", - "reference": "26d54982f2d51f9a06bcba190efcba4d8423bb43" + "reference": "94c8c01a64d8b6aadf8ed86347f7fc5bc2546426" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brightnucleus/config/zipball/26d54982f2d51f9a06bcba190efcba4d8423bb43", - "reference": "26d54982f2d51f9a06bcba190efcba4d8423bb43", + "url": "https://api.github.com/repos/brightnucleus/config/zipball/94c8c01a64d8b6aadf8ed86347f7fc5bc2546426", + "reference": "94c8c01a64d8b6aadf8ed86347f7fc5bc2546426", "shasum": "" }, "require": { - "beberlei/assert": ">=2.5", "brightnucleus/exceptions": ">=0.2", "symfony/options-resolver": ">=2.8" }, "require-dev": { "php-composter/php-composter-phpcs-psr2": "^0.2.0", - "phpunit/phpunit": "~4", - "squizlabs/php_codesniffer": "~2.5" + "phpunit/phpunit": "~4" }, "type": "library", "autoload": { @@ -92,7 +90,7 @@ }, "notification-url": "https://packagist.org/downloads/", "license": [ - "GPL-2.0+" + "MIT" ], "authors": [ { @@ -101,7 +99,7 @@ } ], "description": "Minimal, reusable Config component.", - "time": "2016-04-05 07:53:18" + "time": "2016-06-09 11:45:13" }, { "name": "brightnucleus/contracts", @@ -145,12 +143,12 @@ "source": { "type": "git", "url": "https://github.com/brightnucleus/dependencies.git", - "reference": "29438eb72b7ecfe68bd0cb6969f24798934c6488" + "reference": "63e2b8efcac8dafa2831845f640ef71f9372c77d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brightnucleus/dependencies/zipball/29438eb72b7ecfe68bd0cb6969f24798934c6488", - "reference": "29438eb72b7ecfe68bd0cb6969f24798934c6488", + "url": "https://api.github.com/repos/brightnucleus/dependencies/zipball/63e2b8efcac8dafa2831845f640ef71f9372c77d", + "reference": "63e2b8efcac8dafa2831845f640ef71f9372c77d", "shasum": "" }, "require": { @@ -186,21 +184,18 @@ }, { "name": "brightnucleus/exceptions", - "version": "v0.2.4", + "version": "v0.2.5", "source": { "type": "git", "url": "https://github.com/brightnucleus/exceptions.git", - "reference": "3b845348bb934599e39bfa8f838185b219ddd5a9" + "reference": "10baa93467fc7c9fed68cf98733222dd029afa5f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/brightnucleus/exceptions/zipball/3b845348bb934599e39bfa8f838185b219ddd5a9", - "reference": "3b845348bb934599e39bfa8f838185b219ddd5a9", + "url": "https://api.github.com/repos/brightnucleus/exceptions/zipball/10baa93467fc7c9fed68cf98733222dd029afa5f", + "reference": "10baa93467fc7c9fed68cf98733222dd029afa5f", "shasum": "" }, - "require": { - "beberlei/assert": ">=2.5" - }, "require-dev": { "phpunit/phpunit": "~4", "squizlabs/php_codesniffer": "~2.5" @@ -222,7 +217,7 @@ } ], "description": "Exceptions shared across Bright Nucleus components.", - "time": "2016-04-05 07:46:33" + "time": "2016-06-08 09:20:26" }, { "name": "brightnucleus/invoker", @@ -309,16 +304,16 @@ }, { "name": "symfony/options-resolver", - "version": "v3.0.4", + "version": "v3.1.1", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "9a05ccd013e9089c3503d740503fb9357c8c341c" + "reference": "30605874d99af0cde6c41fd39e18546330c38100" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/9a05ccd013e9089c3503d740503fb9357c8c341c", - "reference": "9a05ccd013e9089c3503d740503fb9357c8c341c", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/30605874d99af0cde6c41fd39e18546330c38100", + "reference": "30605874d99af0cde6c41fd39e18546330c38100", "shasum": "" }, "require": { @@ -327,7 +322,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "3.1-dev" } }, "autoload": { @@ -359,7 +354,7 @@ "configuration", "options" ], - "time": "2016-03-04 07:55:57" + "time": "2016-05-12 15:59:27" } ], "packages-dev": [ @@ -417,39 +412,136 @@ ], "time": "2015-06-14 21:17:01" }, + { + "name": "phpdocumentor/reflection-common", + "version": "1.0", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/ReflectionCommon.git", + "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/144c307535e82c8fdcaacbcfc1d6d8eeb896687c", + "reference": "144c307535e82c8fdcaacbcfc1d6d8eeb896687c", + "shasum": "" + }, + "require": { + "php": ">=5.5" + }, + "require-dev": { + "phpunit/phpunit": "^4.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jaap van Otterdijk", + "email": "opensource@ijaap.nl" + } + ], + "description": "Common reflection classes used by phpdocumentor to reflect the code structure", + "homepage": "http://www.phpdoc.org", + "keywords": [ + "FQSEN", + "phpDocumentor", + "phpdoc", + "reflection", + "static analysis" + ], + "time": "2015-12-27 11:43:31" + }, { "name": "phpdocumentor/reflection-docblock", - "version": "2.0.4", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8" + "reference": "9270140b940ff02e58ec577c237274e92cd40cdd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/d68dbdc53dc358a816f00b300704702b2eaff7b8", - "reference": "d68dbdc53dc358a816f00b300704702b2eaff7b8", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/9270140b940ff02e58ec577c237274e92cd40cdd", + "reference": "9270140b940ff02e58ec577c237274e92cd40cdd", "shasum": "" }, "require": { - "php": ">=5.3.3" + "php": ">=5.5", + "phpdocumentor/reflection-common": "^1.0@dev", + "phpdocumentor/type-resolver": "^0.2.0", + "webmozart/assert": "^1.0" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^4.4" }, - "suggest": { - "dflydev/markdown": "~1.0", - "erusev/parsedown": "~1.0" + "type": "library", + "autoload": { + "psr-4": { + "phpDocumentor\\Reflection\\": [ + "src/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Mike van Riel", + "email": "me@mikevanriel.com" + } + ], + "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", + "time": "2016-06-10 09:48:41" + }, + { + "name": "phpdocumentor/type-resolver", + "version": "0.2", + "source": { + "type": "git", + "url": "https://github.com/phpDocumentor/TypeResolver.git", + "reference": "b39c7a5b194f9ed7bd0dd345c751007a41862443" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/b39c7a5b194f9ed7bd0dd345c751007a41862443", + "reference": "b39c7a5b194f9ed7bd0dd345c751007a41862443", + "shasum": "" + }, + "require": { + "php": ">=5.5", + "phpdocumentor/reflection-common": "^1.0" + }, + "require-dev": { + "mockery/mockery": "^0.9.4", + "phpunit/phpunit": "^5.2||^4.8.24" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0.x-dev" + "dev-master": "1.0.x-dev" } }, "autoload": { - "psr-0": { - "phpDocumentor": [ + "psr-4": { + "phpDocumentor\\Reflection\\": [ "src/" ] } @@ -461,39 +553,39 @@ "authors": [ { "name": "Mike van Riel", - "email": "mike.vanriel@naenius.com" + "email": "me@mikevanriel.com" } ], - "time": "2015-02-03 12:10:50" + "time": "2016-06-10 07:14:17" }, { "name": "phpspec/prophecy", - "version": "v1.6.0", + "version": "v1.6.1", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "3c91bdf81797d725b14cb62906f9a4ce44235972" + "reference": "58a8137754bc24b25740d4281399a4a3596058e0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/3c91bdf81797d725b14cb62906f9a4ce44235972", - "reference": "3c91bdf81797d725b14cb62906f9a4ce44235972", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/58a8137754bc24b25740d4281399a4a3596058e0", + "reference": "58a8137754bc24b25740d4281399a4a3596058e0", "shasum": "" }, "require": { "doctrine/instantiator": "^1.0.2", "php": "^5.3|^7.0", - "phpdocumentor/reflection-docblock": "~2.0", - "sebastian/comparator": "~1.1", - "sebastian/recursion-context": "~1.0" + "phpdocumentor/reflection-docblock": "^2.0|^3.0.2", + "sebastian/comparator": "^1.1", + "sebastian/recursion-context": "^1.0" }, "require-dev": { - "phpspec/phpspec": "~2.0" + "phpspec/phpspec": "^2.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.5.x-dev" + "dev-master": "1.6.x-dev" } }, "autoload": { @@ -526,7 +618,7 @@ "spy", "stub" ], - "time": "2016-02-15 07:46:21" + "time": "2016-06-07 08:13:47" }, { "name": "phpunit/php-code-coverage", @@ -680,21 +772,24 @@ }, { "name": "phpunit/php-timer", - "version": "1.0.7", + "version": "1.0.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-timer.git", - "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b" + "reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/3e82f4e9fc92665fafd9157568e4dcb01d014e5b", - "reference": "3e82f4e9fc92665fafd9157568e4dcb01d014e5b", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/38e9124049cf1a164f1e4537caf19c99bf1eb260", + "reference": "38e9124049cf1a164f1e4537caf19c99bf1eb260", "shasum": "" }, "require": { "php": ">=5.3.3" }, + "require-dev": { + "phpunit/phpunit": "~4|~5" + }, "type": "library", "autoload": { "classmap": [ @@ -717,7 +812,7 @@ "keywords": [ "timer" ], - "time": "2015-06-21 08:01:12" + "time": "2016-05-12 18:03:57" }, { "name": "phpunit/php-token-stream", @@ -770,16 +865,16 @@ }, { "name": "phpunit/phpunit", - "version": "4.8.24", + "version": "4.8.26", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "a1066c562c52900a142a0e2bbf0582994671385e" + "reference": "fc1d8cd5b5de11625979125c5639347896ac2c74" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a1066c562c52900a142a0e2bbf0582994671385e", - "reference": "a1066c562c52900a142a0e2bbf0582994671385e", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/fc1d8cd5b5de11625979125c5639347896ac2c74", + "reference": "fc1d8cd5b5de11625979125c5639347896ac2c74", "shasum": "" }, "require": { @@ -793,7 +888,7 @@ "phpunit/php-code-coverage": "~2.1", "phpunit/php-file-iterator": "~1.4", "phpunit/php-text-template": "~1.2", - "phpunit/php-timer": ">=1.0.6", + "phpunit/php-timer": "^1.0.6", "phpunit/phpunit-mock-objects": "~2.3", "sebastian/comparator": "~1.1", "sebastian/diff": "~1.2", @@ -838,7 +933,7 @@ "testing", "xunit" ], - "time": "2016-03-14 06:16:08" + "time": "2016-05-17 03:09:28" }, { "name": "phpunit/phpunit-mock-objects", @@ -1014,16 +1109,16 @@ }, { "name": "sebastian/environment", - "version": "1.3.5", + "version": "1.3.7", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "dc7a29032cf72b54f36dac15a1ca5b3a1b6029bf" + "reference": "4e8f0da10ac5802913afc151413bc8c53b6c2716" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/dc7a29032cf72b54f36dac15a1ca5b3a1b6029bf", - "reference": "dc7a29032cf72b54f36dac15a1ca5b3a1b6029bf", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/4e8f0da10ac5802913afc151413bc8c53b6c2716", + "reference": "4e8f0da10ac5802913afc151413bc8c53b6c2716", "shasum": "" }, "require": { @@ -1060,20 +1155,20 @@ "environment", "hhvm" ], - "time": "2016-02-26 18:40:46" + "time": "2016-05-17 03:18:57" }, { "name": "sebastian/exporter", - "version": "1.2.1", + "version": "1.2.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "7ae5513327cb536431847bcc0c10edba2701064e" + "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/7ae5513327cb536431847bcc0c10edba2701064e", - "reference": "7ae5513327cb536431847bcc0c10edba2701064e", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/42c4c2eec485ee3e159ec9884f95b431287edde4", + "reference": "42c4c2eec485ee3e159ec9884f95b431287edde4", "shasum": "" }, "require": { @@ -1081,12 +1176,13 @@ "sebastian/recursion-context": "~1.0" }, "require-dev": { + "ext-mbstring": "*", "phpunit/phpunit": "~4.4" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.2.x-dev" + "dev-master": "1.3.x-dev" } }, "autoload": { @@ -1126,7 +1222,7 @@ "export", "exporter" ], - "time": "2015-06-21 07:55:53" + "time": "2016-06-17 09:04:28" }, { "name": "sebastian/global-state", @@ -1269,16 +1365,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "2.6.0", + "version": "2.6.1", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "1bcdf03b068a530ac1962ce671dead356eeba43b" + "reference": "fb72ed32f8418db5e7770be1653e62e0d6f5dd3d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1bcdf03b068a530ac1962ce671dead356eeba43b", - "reference": "1bcdf03b068a530ac1962ce671dead356eeba43b", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/fb72ed32f8418db5e7770be1653e62e0d6f5dd3d", + "reference": "fb72ed32f8418db5e7770be1653e62e0d6f5dd3d", "shasum": "" }, "require": { @@ -1343,20 +1439,20 @@ "phpcs", "standards" ], - "time": "2016-04-03 22:58:34" + "time": "2016-05-30 22:24:32" }, { "name": "symfony/yaml", - "version": "v3.0.4", + "version": "v3.1.1", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "0047c8366744a16de7516622c5b7355336afae96" + "reference": "c5a7e7fc273c758b92b85dcb9c46149ccda89623" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/0047c8366744a16de7516622c5b7355336afae96", - "reference": "0047c8366744a16de7516622c5b7355336afae96", + "url": "https://api.github.com/repos/symfony/yaml/zipball/c5a7e7fc273c758b92b85dcb9c46149ccda89623", + "reference": "c5a7e7fc273c758b92b85dcb9c46149ccda89623", "shasum": "" }, "require": { @@ -1365,7 +1461,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "3.0-dev" + "dev-master": "3.1-dev" } }, "autoload": { @@ -1392,7 +1488,56 @@ ], "description": "Symfony Yaml Component", "homepage": "https://symfony.com", - "time": "2016-03-04 07:55:57" + "time": "2016-06-14 11:18:07" + }, + { + "name": "webmozart/assert", + "version": "1.0.2", + "source": { + "type": "git", + "url": "https://github.com/webmozart/assert.git", + "reference": "30eed06dd6bc88410a4ff7f77b6d22f3ce13dbde" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozart/assert/zipball/30eed06dd6bc88410a4ff7f77b6d22f3ce13dbde", + "reference": "30eed06dd6bc88410a4ff7f77b6d22f3ce13dbde", + "shasum": "" + }, + "require": { + "php": ">=5.3.3" + }, + "require-dev": { + "phpunit/phpunit": "^4.6" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Assert\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Assertions to validate method input/output with nice error messages.", + "keywords": [ + "assert", + "check", + "validate" + ], + "time": "2015-08-24 13:29:44" }, { "name": "wp-coding-standards/wpcs", @@ -1400,12 +1545,12 @@ "source": { "type": "git", "url": "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git", - "reference": "b415094aa5fd24da6eba2295323bcff840902dd3" + "reference": "f50ccffe5ef3a77e84b3be9487cb7a477248a8ea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/b415094aa5fd24da6eba2295323bcff840902dd3", - "reference": "b415094aa5fd24da6eba2295323bcff840902dd3", + "url": "https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/zipball/f50ccffe5ef3a77e84b3be9487cb7a477248a8ea", + "reference": "f50ccffe5ef3a77e84b3be9487cb7a477248a8ea", "shasum": "" }, "require": { @@ -1428,7 +1573,7 @@ "standards", "wordpress" ], - "time": "2016-02-01 16:14:59" + "time": "2016-05-02 03:33:03" } ], "aliases": [], diff --git a/src/Shortcode.php b/src/Shortcode.php index e856dda..a31b085 100644 --- a/src/Shortcode.php +++ b/src/Shortcode.php @@ -11,7 +11,6 @@ namespace BrightNucleus\Shortcode; -use Assert; use BrightNucleus\Config\ConfigInterface; use BrightNucleus\Config\ConfigTrait; use BrightNucleus\Dependency\DependencyManagerInterface as DependencyManager; @@ -91,8 +90,6 @@ public function __construct( DependencyManager $dependencies = null ) { - Assert\that( $shortcode_tag )->string()->notEmpty(); - $this->processConfig( $config ); $this->shortcode_tag = $shortcode_tag; @@ -237,8 +234,6 @@ protected function get_view() { } $view = $this->getConfigKey( 'view' ); - Assert\that( $view )->string()->notEmpty()->file(); - return $view; } diff --git a/src/ShortcodeUI.php b/src/ShortcodeUI.php index be5776d..d778d74 100644 --- a/src/ShortcodeUI.php +++ b/src/ShortcodeUI.php @@ -11,7 +11,6 @@ namespace BrightNucleus\Shortcode; -use Assert; use BrightNucleus\Config\ConfigInterface; use BrightNucleus\Config\ConfigTrait; use BrightNucleus\Dependency\DependencyManagerInterface as DependencyManager; @@ -64,8 +63,6 @@ public function __construct( ConfigInterface $config, DependencyManager $dependencies = null ) { - Assert\that( $shortcode_tag )->string()->notEmpty(); - $this->processConfig( $config ); $this->shortcode_tag = $shortcode_tag; diff --git a/src/TemplatedShortcode.php b/src/TemplatedShortcode.php index bc31049..957ffc7 100644 --- a/src/TemplatedShortcode.php +++ b/src/TemplatedShortcode.php @@ -14,7 +14,6 @@ namespace BrightNucleus\Shortcode; -use Assert; use BrightNucleus\Config\ConfigInterface; use BrightNucleus\Dependency\DependencyManagerInterface as DependencyManager; use BrightNucleus\Exception\RuntimeException;