Skip to content

Commit

Permalink
Align with changes in dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
prwater committed Sep 30, 2024
1 parent 25ab9c3 commit b8f0551
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@
"plaisio/kernel": "^3.2.1",
"plaisio/login-handler": "^1.3.0",
"plaisio/login-requirement": "^1.2.0",
"plaisio/request": "^1.0.0",
"plaisio/session": "^5.0.0",
"setbased/php-stratum-mysql": "^7.0.0"
"setbased/php-stratum-mysql": "^7.0.1"
},
"require-dev": {
"phing/phing": "^3.0.0",
"phpunit/phpunit": "^10.5.35",
"plaisio/console-kernel": "^1.0.1",
"plaisio/request-core": "^0.13.0",
"plaisio/request-core": "^1.0.0",
"setbased/php-stratum": "^6.3.1"
},
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/CoreLoginHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ protected function preValidation(): bool
*/
private function logLoginAttempt(): void
{
$ip = $this->nub->request->getRemoteIp();
$ip = $this->nub->request->remoteIp;
if ($ip!==null)
{
if (!str_contains($ip, ':'))
Expand Down
7 changes: 5 additions & 2 deletions test/TestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected function getCompany(): CompanyResolver
*
* @return Object
*/
protected function getDL(): Object
protected function getDL(): object
{
$connector = new MySqlDefaultConnector('127.0.0.1', 'test', 'test', 'test');
$dl = new TestDataLayer($connector);
Expand All @@ -50,7 +50,10 @@ protected function getDL(): Object
*/
protected function getRequest(): Request
{
return new CoreRequest();
$request = new CoreRequest();
$request->validate();

return $request;
}

//--------------------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit b8f0551

Please sign in to comment.