使用beyondcode/express测试PayPal IPN以使用指定端口-如何



我正在使用docker,并尝试

sail share

这样我就可以通过隧道连接到我的本地计算机来测试PayPal IPN。当我共享以获得隧道时,我获得

sail share
Thank you for using expose.
Local-URL:      host.docker.internal:80
Dashboard-URL:      http://127.0.0.1:4040
Expose-URL:     http://eavglxsmrk.laravel-sail.site:8080

当我将PayPal的ipn消息指向暴露的url时,它不起作用,因为ipn只会将消息发送到常规的互联网端口80或443。

所以我购买了Expose Pro软件包,这样我就可以创建一个没有端口的子域,所以我认为它会使用端口80。但是,当我试图向未指定端口的域运行公开时,我会收到大量不推荐的错误。这是一个小样本(实际上他们会在最后。

我试着在docker/sail shell内部和外部运行expose.sail Share仍然有效,但它产生了:8080端口引用,IPN不喜欢。

如果我尝试

sail expose token [token goes here]

我得到了一个不那么不祥的错误页面。

No such command: expose
Commands:
build              Build or rebuild services
config             Validate and view the Compose file
create             Create services
down               Stop and remove resources
events             Receive real time events from containers
exec               Execute a command in a running container
help               Get help on a command
images             List images
kill               Kill containers
logs               View output from containers
pause              Pause services
port               Print the public port for a port binding
ps                 List containers
pull               Pull service images
push               Push service images
restart            Restart services
rm                 Remove stopped containers
run                Run a one-off command
scale              Set number of containers for a service
start              Start services
stop               Stop services
top                Display the running processes
unpause            Unpause services
up                 Create and start containers
version            Show version information and quit
Docker Compose is now in the Docker CLI, try `docker compose`

我的目标是消除端口引用,以便IPN可以将其消息发送到我的本地计算机。

有什么线索吗?

谢谢。

下面是我在dockershell之外的Mac环境中运行exposure时遇到的错误示例。这是我在Mac操作系统中运行的php版本:

php --version
PHP 8.1.2 (cli) (built: Jan 21 2022 04:47:46) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
with Zend OPcache v8.1.2, Copyright (c), by Zend Technologies

这是我在docker shell中的php版本:

sail php --version
PHP 8.0.2 (cli) (built: Feb 23 2021 15:14:20) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies
with Zend OPcache v8.0.2, Copyright (c), by Zend Technologies
with Xdebug v3.1.3, Copyright (c) 2002-2022, by Derick Rethans

下面是当我试图在dockershell之外的macos中公开我的令牌时,我收到的一个长期不推荐使用的警告示例。看起来外部的暴露与docker外壳内部的暴露冲突:

PHP Deprecated:  Return type of HumbugBox3122KevinGHRequirementCheckerRequirementCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/.box/src/RequirementCollection.php on line 12
Deprecated: Return type of HumbugBox3122KevinGHRequirementCheckerRequirementCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/.box/src/RequirementCollection.php on line 12
PHP Deprecated:  Return type of HumbugBox3122KevinGHRequirementCheckerRequirementCollection::count() should either be compatible with Countable::count(): int, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/.box/src/RequirementCollection.php on line 16
Deprecated: Return type of HumbugBox3122KevinGHRequirementCheckerRequirementCollection::count() should either be compatible with Countable::count(): int, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/.box/src/RequirementCollection.php on line 16
PHP Deprecated:  getopt(): Passing null to parameter #1 ($short_options) of type string is deprecated in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/expose on line 22
Deprecated: getopt(): Passing null to parameter #1 ($short_options) of type string is deprecated in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/expose on line 22
PHP Deprecated:  Return type of IlluminateContainerContainer::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/container/Container.php on line 1355
Deprecated: Return type of IlluminateContainerContainer::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/container/Container.php on line 1355
PHP Deprecated:  Return type of IlluminateContainerContainer::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/container/Container.php on line 1366
Deprecated: Return type of IlluminateContainerContainer::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/container/Container.php on line 1366
PHP Deprecated:  Return type of IlluminateContainerContainer::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/container/Container.php on line 1378
Deprecated: Return type of IlluminateContainerContainer::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/container/Container.php on line 1378
PHP Deprecated:  Return type of IlluminateContainerContainer::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/container/Container.php on line 1391
Deprecated: Return type of IlluminateContainerContainer::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/container/Container.php on line 1391
PHP Deprecated:  Return type of PhpOptionSome::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/phpoption/phpoption/src/PhpOption/Some.php on line 152
Deprecated: Return type of PhpOptionSome::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/phpoption/phpoption/src/PhpOption/Some.php on line 152
PHP Deprecated:  Return type of PhpOptionNone::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/phpoption/phpoption/src/PhpOption/None.php on line 118
Deprecated: Return type of PhpOptionNone::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/phpoption/phpoption/src/PhpOption/None.php on line 118
PHP Deprecated:  Return type of IlluminateConfigRepository::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/config/Repository.php on line 141
Deprecated: Return type of IlluminateConfigRepository::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/config/Repository.php on line 141
PHP Deprecated:  Return type of IlluminateConfigRepository::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/config/Repository.php on line 152
Deprecated: Return type of IlluminateConfigRepository::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/config/Repository.php on line 152
PHP Deprecated:  Return type of IlluminateConfigRepository::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/config/Repository.php on line 164
Deprecated: Return type of IlluminateConfigRepository::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/config/Repository.php on line 164
PHP Deprecated:  Return type of IlluminateConfigRepository::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/config/Repository.php on line 175
Deprecated: Return type of IlluminateConfigRepository::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/config/Repository.php on line 175
PHP Deprecated:  Return type of SymfonyComponentFinderFinder::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Finder.php on line 608
Deprecated: Return type of SymfonyComponentFinderFinder::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Finder.php on line 608
PHP Deprecated:  Return type of SymfonyComponentFinderFinder::count() should either be compatible with Countable::count(): int, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Finder.php on line 690
Deprecated: Return type of SymfonyComponentFinderFinder::count() should either be compatible with Countable::count(): int, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Finder.php on line 690
PHP Deprecated:  Return type of SymfonyComponentFinderIteratorFileTypeFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php on line 42
Deprecated: Return type of SymfonyComponentFinderIteratorFileTypeFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php on line 42
PHP Deprecated:  Return type of SymfonyComponentFinderIteratorRecursiveDirectoryIterator::getChildren() should either be compatible with RecursiveDirectoryIterator::getChildren(): RecursiveDirectoryIterator, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php on line 85
Deprecated: Return type of SymfonyComponentFinderIteratorRecursiveDirectoryIterator::getChildren() should either be compatible with RecursiveDirectoryIterator::getChildren(): RecursiveDirectoryIterator, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php on line 85
PHP Deprecated:  Return type of SymfonyComponentFinderIteratorRecursiveDirectoryIterator::rewind() should either be compatible with FilesystemIterator::rewind(): void, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php on line 113
Deprecated: Return type of SymfonyComponentFinderIteratorRecursiveDirectoryIterator::rewind() should either be compatible with FilesystemIterator::rewind(): void, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php on line 113
PHP Deprecated:  Return type of SymfonyComponentFinderIteratorRecursiveDirectoryIterator::current() should either be compatible with FilesystemIterator::current(): SplFileInfo|FilesystemIterator|string, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php on line 61
Deprecated: Return type of SymfonyComponentFinderIteratorRecursiveDirectoryIterator::current() should either be compatible with FilesystemIterator::current(): SplFileInfo|FilesystemIterator|string, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php on line 61
PHP Deprecated:  Return type of SymfonyComponentFinderIteratorExcludeDirectoryFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php on line 55
Deprecated: Return type of SymfonyComponentFinderIteratorExcludeDirectoryFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php on line 55
PHP Deprecated:  Return type of SymfonyComponentFinderIteratorExcludeDirectoryFilterIterator::hasChildren() should either be compatible with RecursiveIterator::hasChildren(): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php on line 74
Deprecated: Return type of SymfonyComponentFinderIteratorExcludeDirectoryFilterIterator::hasChildren() should either be compatible with RecursiveIterator::hasChildren(): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php on line 74
PHP Deprecated:  Return type of SymfonyComponentFinderIteratorExcludeDirectoryFilterIterator::getChildren() should either be compatible with RecursiveIterator::getChildren(): ?RecursiveIterator, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php on line 79
Deprecated: Return type of SymfonyComponentFinderIteratorExcludeDirectoryFilterIterator::getChildren() should either be compatible with RecursiveIterator::getChildren(): ?RecursiveIterator, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php on line 79
PHP Deprecated:  Return type of SymfonyComponentFinderIteratorFilenameFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/FilenameFilterIterator.php on line 28
Deprecated: Return type of SymfonyComponentFinderIteratorFilenameFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/FilenameFilterIterator.php on line 28
PHP Deprecated:  Return type of SymfonyComponentFinderIteratorPathFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/PathFilterIterator.php on line 27
Deprecated: Return type of SymfonyComponentFinderIteratorPathFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/symfony/finder/Iterator/PathFilterIterator.php on line 27
PHP Fatal error:  During inheritance of ArrayAccess: Uncaught ErrorException: Return type of IlluminateSupportCollection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/collections/Collection.php:1443
Stack trace:
#0 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/collections/Collection.php(13): IlluminateFoundationBootstrapHandleExceptions->handleError(8192, 'Return type of ...', 'phar:///Users/r...', 1443)
#1 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/.box/vendor/composer/ClassLoader.php(478): include('phar:///Users/r...')
#2 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/.box/vendor/composer/ClassLoader.php(346): ComposerAutoloadincludeFile('phar:///Users/r...')
#3 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/collections/helpers.php(15): ComposerAutoloadClassLoader->loadClass('Illuminate\Supp...')
#4 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/foundation/src/Illuminate/Foundation/PackageManifest.php(89): collect(Array)
#5 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/foundation/src/Illuminate/Foundation/PackageManifest.php(78): IlluminateFoundationPackageManifest->config('aliases')
#6 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php(26): IlluminateFoundationPackageManifest->aliases()
#7 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/framework/src/Bootstrap/RegisterFacades.php(71): IlluminateFoundationBootstrapRegisterFacades->bootstrap(Object(LaravelZeroFrameworkApplication))
#8 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Application.php(243): LaravelZeroFrameworkBootstrapRegisterFacades->bootstrap(Object(LaravelZeroFrameworkApplication))
#9 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Console/Kernel.php(310): IlluminateFoundationApplication->bootstrapWith(Array)
#10 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/framework/src/Kernel.php(130): IlluminateFoundationConsoleKernel->bootstrap()
#11 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/framework/src/Kernel.php(102): LaravelZeroFrameworkKernel->bootstrap()
#12 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/framework/src/Kernel.php(89): LaravelZeroFrameworkKernel->ensureDefaultCommand(Object(SymfonyComponentConsoleInputArgvInput))
#13 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/expose(46): LaravelZeroFrameworkKernel->handle(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))
#14 /Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose(14): require('phar:///Users/r...')
#15 {main} in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/collections/Collection.php on line 13
PHP Fatal error:  Uncaught SymfonyComponentErrorHandlerErrorFatalError: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of IlluminateSupportCollection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/collections/Collection.php:1443
Stack trace:
#0 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/collections/Collection.php(13): IlluminateFoundationBootstrapHandleExceptions->handleError(8192, 'Return type of ...', 'phar:///Users/r...', 1443)
#1 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/.box/vendor/composer/ClassLoader.php(478): include('phar:///Users/r...')
#2 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/.box/vendor/composer/ClassLoader.php(346): ComposerAutoloadincludeFile('phar:///Users/r...')
#3 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/illuminate/collections/helpers.php(15): ComposerAutoloadClassLoader->loadClass('Illuminate\Supp...')
#4 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/foundation/src/Illuminate/Foundation/PackageManifest.php(89): collect(Array)
#5 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/foundation/src/Illuminate/Foundation/PackageManifest.php(78): IlluminateFoundationPackageManifest->config('aliases')
#6 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Bootstrap/RegisterFacades.php(26): IlluminateFoundationPackageManifest->aliases()
#7 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/framework/src/Bootstrap/RegisterFacades.php(71): IlluminateFoundationBootstrapRegisterFacades->bootstrap(Object(LaravelZeroFrameworkApplication))
#8 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Application.php(243): LaravelZeroFrameworkBootstrapRegisterFacades->bootstrap(Object(LaravelZeroFrameworkApplication))
#9 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/foundation/src/Illuminate/Foundation/Console/Kernel.php(310): IlluminateFoundationApplication->bootstrapWith(Array)
#10 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/framework/src/Kernel.php(130): IlluminateFoundationConsoleKernel->bootstrap()
#11 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/framework/src/Kernel.php(102): LaravelZeroFrameworkKernel->bootstrap()
#12 phar:///Users/robertbryandavis/.composer/vendor/beyondcode/expose/builds/expose/vendor/laravel-zero/framework/src/Kernel.php(89): LaravelZeroFrameworkKernel->ensureDefaultCommand(Object(SymfonyComponentConsoleInputArgvInput))

事实证明,Sail使用了一个带有暴露的专用网络,因此您不能在Sail/Docker容器中使用expose Pro。此外,Expose需要发布更新才能与php8.1一起使用。他们今天发布了最新消息。现在我可以在sharedwithexpose.com上向选定的域名公开我的本地主机。而且,expose公开了一个安全端口443,这样Paypal就可以与它通信了。

因此,我认为这个问题已经结束了。

最新更新