fomvasss/laravel-punycode

$__DIR__ undefined variable in boot()

Closed this issue · 2 comments

`
ErrorException : Undefined variable: DIR

at /Users/user/Desktop/Projects/project/vendor/fomvasss/laravel-punycode/src/PunycodeServiceProvider.php:17
13| */
14| public function boot()
15| {
16| $this->publishes([
17| $DIR . '/../config/punycode.php' => config_path('punycode.php')
18| ], 'config');
19|
20| $this->registerHelpers();
21| }
`

Should replace $DIR with DIR and this works.

This breaks publishing config/composer update.

Thanks. I fixed the error!

@fomvasss Awesome quick response! 👍