Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolves Laravel Error: Class UDPSocket cannot extend final class Socket #26

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,9 @@ included LICENSE file.
Follow Steam Condenser on Google Plus+ via
[+Steam Condenser](https://plus.google.com/b/109400543549250623875/109400543549250623875)
or on Twitter via [@steamcondenser](https://twitter.com/steamcondenser).

To get this working in Laravel 10 and php 8: Change two entries in the composer.json file, with these version numbers:
"monolog/monolog": "~3.5"
and
"phpunit/phpunit": "^10.1"

2 changes: 1 addition & 1 deletion lib/SteamCondenser/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @author Sebastian Staudt
* @package steam-condenser
*/
abstract class Socket {
abstract class scSocket {

/**
* The IP address the socket is connected to
Expand Down
2 changes: 1 addition & 1 deletion lib/SteamCondenser/TCPSocket.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @author Sebastian Staudt
* @package steam-condenser
*/
class TCPSocket extends Socket {
class TCPSocket extends scSocket {

/**
* Connects the TCP socket to the host with the given IP address and port
Expand Down
2 changes: 1 addition & 1 deletion lib/SteamCondenser/UDPSocket.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @author Sebastian Staudt
* @package steam-condenser
*/
class UDPSocket extends Socket {
class UDPSocket extends scSocket {

/**
* Connects the UDP socket to the host with the given IP address and port
Expand Down