Skip to content

Commit

Permalink
Merge pull request #149 from exonet/dependabot/github_actions/release…
Browse files Browse the repository at this point in the history
…-drafter/release-drafter-6

Bump release-drafter/release-drafter from 5 to 6
  • Loading branch information
robbinjanssen committed Feb 5, 2024
2 parents ad48c02 + ff25f86 commit 4b466af
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/draft-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
steps:
- name: Run release drafter
id: draft
uses: release-drafter/release-drafter@v5
uses: release-drafter/release-drafter@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
10 changes: 7 additions & 3 deletions examples/BasicAuthConnector.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
<?php

class BasicAuthConnector extends \Exonet\Powerdns\Connector
use Exonet\Powerdns\Connector;
use Exonet\Powerdns\Powerdns;
use GuzzleHttp\HandlerStack;

class BasicAuthConnector extends Connector
{
private $basicAuthUsername;

private $basicAuthPassword;

public function __construct(
Exonet\Powerdns\Powerdns $client,
?GuzzleHttp\HandlerStack $guzzleHandlerStack = null,
Powerdns $client,
?HandlerStack $guzzleHandlerStack = null,
?string $basicAuthUsername = null,
?string $basicAuthPassword = null
) {
Expand Down
3 changes: 2 additions & 1 deletion examples/manage_meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

require __DIR__.'/CliLogger.php';

use Exonet\Powerdns\Exceptions\PowerdnsException;
use Exonet\Powerdns\MetaType;
use Exonet\Powerdns\Powerdns;
use Exonet\Powerdns\RecordType;
Expand All @@ -25,7 +26,7 @@
// Delete the zone if it already exists so this example can be executed multiple times.
try {
$powerdns->deleteZone($domain);
} catch (\Exonet\Powerdns\Exceptions\PowerdnsException $e) {
} catch (PowerdnsException $e) {
}

// Create a new zone with the defined records and name servers.
Expand Down
3 changes: 2 additions & 1 deletion tests/ConnectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Middleware;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\Psr7\Response;
use Mockery;
use PHPUnit\Framework\TestCase;
Expand Down Expand Up @@ -84,7 +85,7 @@ public function testApiCallsAreExecuted()
$this->assertCount(6, $apiCalls);

foreach ($apiCalls as $apiCall) {
/** @var \GuzzleHttp\Psr7\Request $request */
/** @var Request $request */
$request = $apiCall['request'];
$this->assertSame('/api/v1/servers/localhost/test', $request->getUri()->getPath());
$this->assertSame('very_secret_key', $request->getHeader('X-API-Key')[0]);
Expand Down

0 comments on commit 4b466af

Please sign in to comment.